function WorkspacesLazyBuilders::removeTabAttributes

Same name in other branches
  1. 10 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\workspaces

Code

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.