You are here

public function TabBase::getSummary in Block Tabs 8

Returns a render array summarizing the configuration of the tab.

Return value

array A render array.

Overrides TabInterface::getSummary

3 methods override TabBase::getSummary()
BlockContentTab::getSummary in src/Plugin/Tab/BlockContentTab.php
Returns a render array summarizing the configuration of the tab.
BlockTab::getSummary in src/Plugin/Tab/BlockTab.php
Returns a render array summarizing the configuration of the tab.
ViewsTab::getSummary in src/Plugin/Tab/ViewsTab.php
Returns a render array summarizing the configuration of the tab.

File

src/TabBase.php, line 85

Class

TabBase
Provides a base class for tabs.

Namespace

Drupal\blocktabs

Code

public function getSummary() {
  return [
    '#markup' => '',
    '#tab' => [
      'id' => $this->pluginDefinition['id'],
      'label' => $this
        ->label(),
      'description' => $this->pluginDefinition['description'],
    ],
  ];
}