function ClaroPreRender::operations
Same name in other branches
- 9 core/themes/claro/src/ClaroPreRender.php \Drupal\claro\ClaroPreRender::operations()
- 10 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\claroCode
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.