/** * {@inheritdoc} * * TODO: find a way to use param converter with interfaces * * @AclAncestor("pim_enrich_variant_group_edit") * @Template */ public function editAction(Group $group) { if (!$group->getType()->isVariant()) { throw new NotFoundHttpException(sprintf('Variant group with id %d not found.', $group->getId())); } if ($this->groupHandler->process($group)) { $this->addFlash('success', 'flash.variant group.updated'); } return ['form' => $this->groupForm->createView(), 'currentGroup' => $group->getId(), 'attributesForm' => $this->getAvailableAttributesForm($group)->createView()]; }
/** * {@inheritDoc} */ public function getType() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getType', array()); return parent::getType(); }