You are here

public function Blocktabs::getTabs in Block Tabs 8

Returns the tabs for this blocktabs.

Return value

\Drupal\blocktabs\TabPluginCollection|\Drupal\blocktabs\TabInterface[] The tab plugin collection.

Overrides BlocktabsInterface::getTabs

4 calls to Blocktabs::getTabs()
Blocktabs::getCacheContexts in src/Entity/Blocktabs.php
The cache contexts associated with this object.
Blocktabs::getCacheMaxAge in src/Entity/Blocktabs.php
The maximum age for which this object may be cached.
Blocktabs::getCacheTags in src/Entity/Blocktabs.php
The cache tags associated with this object.
Blocktabs::getPluginCollections in src/Entity/Blocktabs.php
Gets the plugin collections used by this object.

File

src/Entity/Blocktabs.php, line 144

Class

Blocktabs
Defines a blocktabs configuration entity.

Namespace

Drupal\blocktabs\Entity

Code

public function getTabs() {
  if (!$this->tabsCollection) {
    $this->tabsCollection = new TabPluginCollection($this
      ->getTabPluginManager(), $this->tabs);
    $this->tabsCollection
      ->sort();
  }
  return $this->tabsCollection;
}