public static function ClaroPreRender::operations in Drupal 10
Same name and namespace in other branches
- 9 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;
}