You are here

public function AttributeBase::setWeight in Linkit 8.4

Sets the weight for this attribute.

Parameters

int $weight: The weight for this attribute.

Return value

$this

Overrides AttributeInterface::setWeight

File

src/AttributeBase.php, line 107
Contains \Drupal\linkit\AttributeBase.

Class

AttributeBase
Provides a base class for attribute plugins.

Namespace

Drupal\linkit

Code

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