Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RegExpLiteral.php

function RegExpLiteral::setPattern

Sets regex pattern

Parameters

string $pattern Regex pattern:

Return value

$this

1 call to RegExpLiteral::setPattern()
RegExpLiteral::setRaw in vendor/mck89/peast/lib/Peast/Syntax/Node/RegExpLiteral.php
Sets node's raw value that must include delimiters

File

vendor/mck89/peast/lib/Peast/Syntax/Node/RegExpLiteral.php, line 70

Class

RegExpLiteral
A node that represents a regular expression literal.

Namespace

Peast\Syntax\Node

Code

public function setPattern($pattern) {
    $this->pattern = $pattern;
    return $this;
}
RSS feed
Powered by Drupal