function RenderCallbacks::removeTabAttributes

Same name in other branches
  1. 10 core/modules/announcements_feed/src/RenderCallbacks.php \Drupal\announcements_feed\RenderCallbacks::removeTabAttributes()

Render callback.

File

core/modules/announcements_feed/src/RenderCallbacks.php, line 19

Class

RenderCallbacks
Defines a class for render callbacks.

Namespace

Drupal\announcements_feed

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.