You are here

public function MatcherBase::setWeight in Linkit 8.5

Same name and namespace in other branches
  1. 8.4 src/MatcherBase.php \Drupal\linkit\MatcherBase::setWeight()

Sets the weight for the matcher.

Parameters

int $weight: The weight for this matcher.

Return value

$this

Overrides MatcherInterface::setWeight

File

src/MatcherBase.php, line 81

Class

MatcherBase
Provides a base class for matchers.

Namespace

Drupal\linkit

Code

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