elementTypesTemplatesRepository = $elementTypesTemplatesRepository; } /** * @param CommonIdView $view [description] * * @return array [description] */ public function templatesByExportId(CommonIdView $view): array { $result = []; $elementTypesTemplates = $this->elementTypesTemplatesRepository->findTemplatesByExportId($view->id); if ($elementTypesTemplates) { $templates = $elementTypesTemplates->getTemplates(); foreach ($templates as $template) { if (isset($template['id'])) { $result[] = $template['id']; } } } return $result; } }