You are here

protected function ExtraFieldEntityLinkPlugin::getEntityLinkTemplateOptions in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/ExtraFieldType/ExtraFieldEntityLinkPlugin.php \Drupal\entity_extra_field\Plugin\ExtraFieldType\ExtraFieldEntityLinkPlugin::getEntityLinkTemplateOptions()

Get entity link template options.

Return value

array An array of the entity template options.

Throws

\Drupal\Component\Plugin\Exception\PluginNotFoundException

1 call to ExtraFieldEntityLinkPlugin::getEntityLinkTemplateOptions()
ExtraFieldEntityLinkPlugin::buildConfigurationForm in src/Plugin/ExtraFieldType/ExtraFieldEntityLinkPlugin.php
Form constructor.

File

src/Plugin/ExtraFieldType/ExtraFieldEntityLinkPlugin.php, line 162

Class

ExtraFieldEntityLinkPlugin
Define the extra field entity link type.

Namespace

Drupal\entity_extra_field\Plugin\ExtraFieldType

Code

protected function getEntityLinkTemplateOptions() {
  $templates = array_keys($this
    ->getTargetEntityTypeDefinition()
    ->getLinkTemplates());
  return array_combine($templates, $templates);
}