/**
  * Get last operations data
  *
  * @param array $types
  *
  * @return array
  */
 public function getLastOperationsData(array $types)
 {
     $types = array_filter($types, function ($type) {
         return $this->securityFacade->isGranted(sprintf('pim_importexport_%s_execution_show', $type));
     });
     return $this->repository->getLastOperationsData($types);
 }