You are here

function hook_display_variant_plugin_alter in Drupal 8

Same name and namespace in other branches
  1. 9 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 2148
Documentation landing page and topics, plus core library hooks.

Code

function hook_display_variant_plugin_alter(array &$definitions) {
  $definitions['full_page']['admin_label'] = t('Block layout');
}