function WorkspacesUiToolbarLinkBuilder::removeTabAttributes

Render callback for the workspace toolbar tab.

File

core/modules/toolbar/src/WorkspacesUiToolbarLinkBuilder.php, line 80

Class

WorkspacesUiToolbarLinkBuilder
Fills out the placeholder generated in ToolbarHooks::workspacesUiToolbar().

Namespace

Drupal\toolbar

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.