You are here

public static function ClaroPreRender::operations in Drupal 9

Prerender callback for the Operations element.

File

core/themes/claro/src/ClaroPreRender.php, line 121

Class

ClaroPreRender
Implements trusted prerender callbacks for the Claro theme.

Namespace

Drupal\claro

Code

public static function operations($element) {
  if (empty($element['#dropbutton_type'])) {
    $element['#dropbutton_type'] = 'extrasmall';
  }
  return $element;
}