You are here

function hook_link_attributes_plugin_alter in Link Attributes widget 8

Modify the definitions of link attribute plugins.

Parameters

array[] $plugins: Link attribute plugin definitions.

1 function implements hook_link_attributes_plugin_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

link_attributes_test_alterinfo_link_attributes_plugin_alter in tests/modules/link_attributes_test_alterinfo/link_attributes_test_alterinfo.module
Implements hook_link_attributes_plugin_alter().
1 invocation of hook_link_attributes_plugin_alter()
LinkAttributesManager::__construct in src/LinkAttributesManager.php
Constructs a LinkAttributesManager object.

File

./link_attributes.api.php, line 19
Hooks related to the Link Attributes module.

Code

function hook_link_attributes_plugin_alter(array &$plugins) {

  // Set a default value for the target attribute.
  $plugins['target']['default_value'] = '_blank';
}