function WorkspacesLazyBuilders::removeTabAttributes
Render callback for the workspace toolbar tab.
File
-
core/
modules/ workspaces/ src/ WorkspacesLazyBuilders.php, line 75
Class
- WorkspacesLazyBuilders
- Defines a service for workspaces #lazy_builder callbacks.
Namespace
Drupal\workspacesCode
public static function removeTabAttributes(array $element) : array {
unset($element['tab']['#attributes']);
return $element;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.