You are here

function hook_language_cookie_condition_info_alter in Language Cookie 8

Modify the list of available Language Cookie condition 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\language_cookie\LanguageCookieConditionManager

1 invocation of hook_language_cookie_condition_info_alter()
LanguageCookieConditionManager::__construct in src/LanguageCookieConditionManager.php
Constructs a new LanguageCookieConditionManager object.

File

./language_cookie.api.php, line 26
Documentation for Language Cookie module APIs.

Code

function hook_language_cookie_condition_info_alter(array &$plugins) {
  $plugins['someplugin']['name'] = t('Better name');
}