public function Blocktabs::getTab in Block Tabs 8
Returns a specific tab.
Parameters
string $tab: The tab ID.
Return value
\Drupal\blocktabs\TabInterface The tab object.
Overrides BlocktabsInterface::getTab
File
- src/
Entity/ Blocktabs.php, line 137
Class
- Blocktabs
- Defines a blocktabs configuration entity.
Namespace
Drupal\blocktabs\EntityCode
public function getTab($tab) {
return $this
->getTabs()
->get($tab);
}