/**
  * List groups
  *
  * @param Request $request
  *
  * @Template
  * @AclAncestor("pim_enrich_group_index")
  *
  * @return Response
  */
 public function indexAction(Request $request)
 {
     return ['groupTypes' => array_keys($this->groupManager->getTypeChoices(false))];
 }
 /**
  * Display the products of a group
  *
  * @param Group $group
  *
  * @return array
  *
  * @AclAncestor("pim_enrich_product_index")
  * @Template("PimEnrichBundle:Group:_productList.html.twig")
  */
 public function productListAction(Group $group)
 {
     return $this->groupManager->getProductList($group, static::MAX_PRODUCTS);
 }
 /**
  * Returns an array containing a limited number of product groups, and the total number of products.
  *
  * @param Group   $group
  * @param integer $maxResults
  *
  * @return array
  */
 public function getProductList(Group $group, $maxResults)
 {
     return $this->baseGroupManager->getProductList($group, $maxResults);
 }
 /**
  * Get the attribute repository
  *
  * @return \Pim\Bundle\CatalogBundle\Entity\Repository\AttributeRepository
  */
 protected function getAttributeRepository()
 {
     return $this->baseGroupManager->getAttributeRepository();
 }
 /**
  * {@inheritdoc}
  *
  * @Template
  * @AclAncestor("pim_enrich_variant_group_index")
  *
  * @return Response
  */
 public function indexAction()
 {
     return ['groupTypes' => array_keys($this->groupManager->getTypeChoices(true))];
 }