You are here

function hook_ui_patterns_info_alter in UI Patterns 8

Alter UI Patterns definitions.

Parameters

\Drupal\ui_patterns\Definition\PatternDefinition[] $definitions: Pattern definitions.

See also

\Drupal\ui_patterns\UiPatternsManager

1 invocation of hook_ui_patterns_info_alter()
UiPatternsManager::__construct in src/UiPatternsManager.php
UiPatternsManager constructor.

File

./ui_patterns.api.php, line 18
API file.

Code

function hook_ui_patterns_info_alter(array &$definitions) {
  $definitions['my_pattern']
    ->setLabel('My new label');
}