public function Blocktabs::deleteTab in Block Tabs 8
Deletes a tab from this block tabs.
Parameters
\Drupal\blocktabs\TabInterface $tab: The tab object.
Return value
$this
Overrides BlocktabsInterface::deleteTab
File
- src/
Entity/ Blocktabs.php, line 128
Class
- Blocktabs
- Defines a blocktabs configuration entity.
Namespace
Drupal\blocktabs\EntityCode
public function deleteTab(TabInterface $tab) {
$this
->getTabs()
->removeInstanceId($tab
->getUuid());
$this
->save();
return $this;
}