You are here

public function ViewmodepagePattern::setPattern in View Mode Page 8.3

Same name and namespace in other branches
  1. 4.0.x src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::setPattern()
  2. 3.2.x src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::setPattern()

Set the pattern to use during path processing.

Parameters

string $pattern: The pattern.

Return value

$this Returns the pattern to use during path processing.

Overrides ViewmodepagePatternInterface::setPattern

File

src/Entity/ViewmodepagePattern.php, line 219

Class

ViewmodepagePattern
Defines the Viewmodepage pattern entity.

Namespace

Drupal\view_mode_page\Entity

Code

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