function stable_process_text_format

Same name in other branches
  1. 8.9.x core/themes/stable/stable.theme \stable_process_text_format()

#process callback, for adding classes to filter components.

Parameters

array $element: Render array for the text_format element.

Return value

array Text_format element with the filter classes added.

1 string reference to 'stable_process_text_format'
stable_element_info_alter in core/themes/stable/stable.theme
Implements hook_element_info_alter().

File

core/themes/stable/stable.theme, line 58

Code

function stable_process_text_format(array $element) {
    $element['format']['#attributes']['class'][] = 'filter-wrapper';
    $element['format']['guidelines']['#attributes']['class'][] = 'filter-guidelines';
    $element['format']['format']['#attributes']['class'][] = 'filter-list';
    $element['format']['help']['#attributes']['class'][] = 'filter-help';
    return $element;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.