function ClaroPreRender::operations

Same name and namespace in other branches
  1. 9 core/themes/claro/src/ClaroPreRender.php \Drupal\claro\ClaroPreRender::operations()
  2. 11.x core/themes/claro/src/ClaroPreRender.php \Drupal\claro\ClaroPreRender::operations()

Prerender callback for the Operations element.

File

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

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;
}

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