You are here

function seven_element_info_alter in Drupal 9

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

Implements hook_element_info_alter().

File

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

Code

function seven_element_info_alter(&$type) {

  // We require Modernizr for button styling.
  if (isset($type['button'])) {
    $type['button']['#attached']['library'][] = 'core/modernizr';
  }
}