You are here

abstract protected function TabFormBase::prepareTab in Block Tabs 8

Converts a tab ID into an object.

Parameters

string $tab: The tab ID.

Return value

\Drupal\blocktabs\TabInterface The tab object.

1 call to TabFormBase::prepareTab()
TabFormBase::buildForm in src/Form/TabFormBase.php
2 methods override TabFormBase::prepareTab()
TabAddForm::prepareTab in src/Form/TabAddForm.php
Converts a tab ID into an object.
TabEditForm::prepareTab in src/Form/TabEditForm.php
Converts a tab ID into an object.

File

src/Form/TabFormBase.php, line 166

Class

TabFormBase
Provides a base form for tab.

Namespace

Drupal\blocktabs\Form

Code

protected abstract function prepareTab($tab);