You are here

function hook_ds_field_templates_info_alter in Display Suite 8.4

Same name and namespace in other branches
  1. 8.2 ds.api.php \hook_ds_field_templates_info_alter()
  2. 8.3 ds.api.php \hook_ds_field_templates_info_alter()

Modify the list of available ds field template plugins.

This hook may be used to modify plugin properties after they have been specified by other modules.

Parameters

array $plugins: An array of all the existing plugin definitions, passed by reference.

See also

\Drupal\views\Plugin\DsFieldTemplatePluginManager

1 invocation of hook_ds_field_templates_info_alter()
DsFieldTemplatePluginManager::__construct in src/Plugin/DsFieldTemplatePluginManager.php
Constructs a new \Drupal\ds\Plugin\Type\DsPluginManager object.

File

./ds.api.php, line 44
Hooks provided by Display Suite module.

Code

function hook_ds_field_templates_info_alter(array &$plugins) {
  $plugins['expert']['title'] = t('My template');
}