Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function linkTemplates()
 {
     $link_templates = parent::linkTemplates();
     if (\Drupal::moduleHandler()->moduleExists('field_ui')) {
         $link_templates['edit-form'] = 'field_ui.instance_edit_' . $this->entity_type;
         $link_templates['storage-edit-form'] = 'field_ui.storage_edit_' . $this->entity_type;
         $link_templates['delete-form'] = 'field_ui.delete_' . $this->entity_type;
         if (isset($link_templates['drupal:config-translation-overview'])) {
             $link_templates['drupal:config-translation-overview'] .= $link_templates['edit-form'];
         }
     }
     return $link_templates;
 }