You are here

public function PathautoPattern::setPattern in Pathauto 8

Set the tokenized pattern to use during alias generation.

Parameters

string $pattern:

Return value

$this

Overrides PathautoPatternInterface::setPattern

File

src/Entity/PathautoPattern.php, line 191

Class

PathautoPattern
Defines the Pathauto pattern entity.

Namespace

Drupal\pathauto\Entity

Code

public function setPattern($pattern) {
  $this->pattern = $pattern;
  return $this;
}