function OliveroHooks::preprocessTextarea

Same name and namespace in other branches
  1. 11.x core/themes/olivero/src/Hook/OliveroHooks.php \Drupal\olivero\Hook\OliveroHooks::preprocessTextarea()

Implements hook_preprocess_HOOK() for textarea.

Attributes

#[Hook('preprocess_textarea')]

File

core/themes/olivero/src/Hook/OliveroHooks.php, line 295

Class

OliveroHooks
Hook implementations for olivero.

Namespace

Drupal\olivero\Hook

Code

public function preprocessTextarea(&$variables) : void {
  $variables['attributes']['class'][] = 'form-element';
  $variables['attributes']['class'][] = 'form-element--type-textarea';
  $variables['attributes']['class'][] = 'form-element--api-textarea';
}

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