You are here

function seven_element_info_alter in Drupal 10

Same name and namespace in other branches
  1. 8 core/themes/seven/seven.theme \seven_element_info_alter()
  2. 9 core/themes/seven/seven.theme \seven_element_info_alter()

Implements hook_element_info_alter().

File

core/themes/seven/seven.theme, line 128
Functions to support theming in the Seven theme.

Code

function seven_element_info_alter(&$type) {

  // We require the touchevents test for button styling.
  if (isset($type['button'])) {
    $type['button']['#attached']['library'][] = 'core/drupal.touchevents-test';
  }
}