function stable_process_text_format in Drupal 8
Same name and namespace in other branches
- 9 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 61 - Functions to support theming in the Stable theme.
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;
}