You are here

function stable_process_text_format in Drupal 10

Same name and namespace in other branches
  1. 8 core/themes/stable/stable.theme \stable_process_text_format()
  2. 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 58
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;
}