public function TabInterface::addTab in Block Tabs 8
Applies a tab to the blocktabs.
Parameters
\Drupal\blocktabs\BlocktabsInterface $blocktabs: An blocktabs object.
Return value
bool TRUE on success. FALSE if unable to add the tab to the blocktabs.
3 methods override TabInterface::addTab()
- BlockContentTab::addTab in src/
Plugin/ Tab/ BlockContentTab.php - Applies a tab to the blocktabs.
- BlockTab::addTab in src/
Plugin/ Tab/ BlockTab.php - Applies a tab to the blocktabs.
- ViewsTab::addTab in src/
Plugin/ Tab/ ViewsTab.php - Applies a tab to the blocktabs.
File
- src/
TabInterface.php, line 31
Class
- TabInterface
- Defines the interface for tab.
Namespace
Drupal\blocktabsCode
public function addTab(BlocktabsInterface $blocktabs);