function WorkspacesLazyBuilders::removeTabAttributes
Same name in other branches
- 11.x core/modules/workspaces/src/WorkspacesLazyBuilders.php \Drupal\workspaces\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.