hook_transliteration_overrides_alter

hook_transliteration_overrides_alter(&$overrides, $langcode) Provide language-specific overrides for transliteration. If the overrides you want to provide are standard for your language, consider providing a patch for the Drupal Core transliteration system instead of using this hook. This hook can be used temporarily until Drupal Core's transliteration tables are fixed, or for sites that want to use a non-standard transliteration system. Parameters array $overrides: Associative array of la

hook_tour_tips_info_alter

hook_tour_tips_info_alter(&$info) Allow modules to alter tip plugin definitions. Parameters array $info: The array of tip plugin definitions, keyed by plugin ID. See also \Drupal\tour\Annotation\Tip Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/tour/tour.api.php, line 37 Describes API functions for tour module. Code function hook_tour_tips_info_alter(&$info) { // Swap out the class used for this tip plugin. if (isset($info['tex

hook_tour_tips_alter

hook_tour_tips_alter(array &$tour_tips, Drupal\Core\Entity\EntityInterface $entity) Allow modules to alter tour items before render. Parameters array $tour_tips: Array of \Drupal\tour\TipPluginInterface items. \Drupal\Core\Entity\EntityInterface $entity: The tour which contains the $tour_tips. Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/tour/tour.api.php, line 21 Describes API functions for tour module. Code function hook_tour_tips_al

hook_toolbar_alter

hook_toolbar_alter(&$items) Alter the toolbar menu after hook_toolbar() is invoked. This hook is invoked by toolbar_view() immediately after hook_toolbar(). The toolbar definitions are passed in by reference. Each element of the $items array is one item returned by a module from hook_toolbar(). Additional items may be added, or existing items altered. Parameters $items: Associative array of toolbar menu definitions returned from hook_toolbar(). Related topics Hooks Define functions that al

hook_toolbar

hook_toolbar() Add items to the toolbar menu. The toolbar is a container for administrative and site-global interactive components. The toolbar provides a common styling for items denoted by the .toolbar-tab class. The toolbar provides a construct called a 'tray'. The tray is a container for content. The tray may be associated with a toggle in the administration bar. The toggle shows or hides the tray and is optimized for small and large screens. To create this association, hook_toolbar() retur

hook_token_info_alter

hook_token_info_alter(&$data) Alter the metadata about available placeholder tokens and token types. Parameters $data: The associative array of token definitions from hook_token_info(). See also hook_token_info() Related topics Hooks Define functions that alter the behavior of Drupal core. File core/lib/Drupal/Core/Utility/token.api.php, line 265 Hooks related to the Token system. Code function hook_token_info_alter(&$data) { // Modify description of node tokens for our site.

hook_token_info

hook_token_info() Provide information about available placeholder tokens and token types. Tokens are placeholders that can be put into text by using the syntax [type:token], where type is the machine-readable name of a token type, and token is the machine-readable name of a token within this group. This hook provides a list of types and tokens to be displayed on text editing screens, so that people editing text can see what their token options are. The actual token replacement is done by \Drupa

hook_tokens_alter

hook_tokens_alter(array &$replacements, array $context, \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata) Alter replacement values for placeholder tokens. Parameters $replacements: An associative array of replacements returned by hook_tokens(). $context: The context in which hook_tokens() was called. An associative array with the following keys, which have the same meaning as the corresponding parameters of hook_tokens(): 'type' 'tokens' 'data' 'options' \Drupal\Core\Render\Bu

hook_tokens

hook_tokens($type, $tokens, array $data, array $options, \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata) Provide replacement values for placeholder tokens. This hook is invoked when someone calls \Drupal\Core\Utility\Token::replace(). That function first scans the text for [type:token] patterns, and splits the needed tokens into groups by type. Then hook_tokens() is invoked on each token-type group, allowing your module to respond by providing replacement text for any of the tokens

hook_theme_suggestions_HOOK_alter

hook_theme_suggestions_HOOK_alter(array &$suggestions, array $variables) Alters named suggestions for a specific theme hook. This hook allows any module or theme to provide alternative theme function or template name suggestions and reorder or remove suggestions provided by hook_theme_suggestions_HOOK() or by earlier invocations of this hook. HOOK is the least-specific version of the hook being called. For example, if '#theme' => 'node__article' is called, then node_theme_suggestions_nod