function ThemeHooks::operations
Same name and namespace in other branches
- main core/themes/admin/src/Hook/ThemeHooks.php \Drupal\admin\Hook\ThemeHooks::operations()
Prerender callback for the Operations element.
File
-
core/
themes/ admin/ src/ Hook/ ThemeHooks.php, line 363
Class
- ThemeHooks
- Provides theme related hook implementations.
Namespace
Drupal\admin\HookCode
public static function operations(array $element) : array {
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.