getLabelField example

$this->loadTypes($controller);

            return true;
        }

        try {
            $type = $this->provider->getType($model);
        } catch (RuntimeException $e) {
            return;
        }

        $label = $this->getLabelField($type);

        /** @var RepositoryInterface $repository */
        $repository = $controller->get('shopware.bundle.content_type.' . $type->getInternalName());

        $request = $controller->Request();

        $criteria = new Criteria();
        $criteria->offset = (int) $request->getParam('start', 0);
        $criteria->limit = (int) $request->getParam('limit', 0);
        $criteria->sort = $request->getParam('sort', []);
        $criteria->filter = $request->getParam('filter', []);
        
Home | Imprint | This part of the site doesn't use cookies.