You are here

public function ViewmodepagePattern::setPattern in View Mode Page 4.0.x

Same name and namespace in other branches
  1. 8.3 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;
}