function hook_display_variant_plugin_alter
Same name in other branches
- 8.9.x core/core.api.php \hook_display_variant_plugin_alter()
- 10 core/core.api.php \hook_display_variant_plugin_alter()
- 11.x core/core.api.php \hook_display_variant_plugin_alter()
Alter display variant plugin definitions.
Parameters
array $definitions: The array of display variant definitions, keyed by plugin ID.
See also
\Drupal\Core\Display\VariantManager
\Drupal\Core\Display\Annotation\DisplayVariant
Related topics
1 invocation of hook_display_variant_plugin_alter()
- VariantManager::__construct in core/
lib/ Drupal/ Core/ Display/ VariantManager.php - Constructs a new VariantManager.
File
-
core/
core.api.php, line 2181
Code
function hook_display_variant_plugin_alter(array &$definitions) {
$definitions['full_page']['admin_label'] = t('Block layout');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.