You are here

protected function TabEditForm::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.

Overrides TabFormBase::prepareTab

File

src/Form/TabEditForm.php, line 28

Class

TabEditForm
Provides an edit form for tab.

Namespace

Drupal\blocktabs\Form

Code

protected function prepareTab($tab) {
  return $this->blocktabs
    ->getTab($tab);
}