You are here

public function TabBase::setWeight in Block Tabs 8

Sets the weight for this tab.

Parameters

int $weight: The weight for this tab.

Return value

$this

Overrides TabInterface::setWeight

File

src/TabBase.php, line 113

Class

TabBase
Provides a base class for tabs.

Namespace

Drupal\blocktabs

Code

public function setWeight($weight) {
  $this->weight = $weight;
  return $this;
}