function WorkspacesUiLazyBuilders::removeTabAttributes

Render callback for the workspace toolbar tab.

File

core/modules/workspaces_ui/src/WorkspacesUiLazyBuilders.php, line 76

Class

WorkspacesUiLazyBuilders
Defines a service for workspaces #lazy_builder callbacks.

Namespace

Drupal\workspaces_ui

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.