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

Breadcrumb

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

function RegExpLiteral::setFlags

Sets regex flags

Parameters

string $flags Regex flags:

Return value

$this

1 call to RegExpLiteral::setFlags()
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 93

Class

RegExpLiteral
A node that represents a regular expression literal.

Namespace

Peast\Syntax\Node

Code

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