You are here

public function PathautoPattern::setWeight in Pathauto 8

Sets the weight of this pattern (compared to other patterns of this type).

Parameters

int $weight: The weight of the variant.

Return value

$this

Overrides PathautoPatternInterface::setWeight

File

src/Entity/PathautoPattern.php, line 223

Class

PathautoPattern
Defines the Pathauto pattern entity.

Namespace

Drupal\pathauto\Entity

Code

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