getProductCategoryContainer()->getRepositoryQuery(); } public function createEntity(string $entityFqcn) { return $this->getProductCategoryContainer()->getFactory()->create($this->getSectionCurrent()); } public function configureFields(string $pageName): iterable { return $this->getProductCategoryContainer()->getFieldDefinition() ->setMerchant($this->getMerchantCurrent()) ->setSection($this->getSectionCurrent()) ->getFields($pageName); } public function configureActions(Actions $actions): Actions { $actions = parent::configureActions($actions); if(!$this->getSectionCurrent()) { $actions->disable(ActionDefinition::NEW); } return $actions; } }