/**
  * Get warning messages to display during the mass edit action
  *
  * @return string[]
  */
 protected function generateWarningMessages()
 {
     $messages = [];
     if (0 === count($this->groupRepository->getAllGroupsExceptVariant())) {
         $messages[] = ['key' => 'pim_enrich.mass_edit_action.add-to-groups.no_group', 'options' => []];
     }
     return $messages;
 }
 /**
  * @return JsonResponse
  */
 public function indexAction()
 {
     $groups = $this->groupRepository->getAllGroupsExceptVariant();
     return new JsonResponse($this->normalizer->normalize($groups, 'internal_api'));
 }
 /**
  * {@inheritdoc}
  */
 protected function readItems()
 {
     return $this->repository->getAllGroupsExceptVariant();
 }