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

Breadcrumb

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

function Lexer::__construct

Same name in this branch
  1. 11.1.x vendor/phpstan/phpdoc-parser/src/Lexer/Lexer.php \PHPStan\PhpDocParser\Lexer\Lexer::__construct()
  2. 11.1.x vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php \Seld\JsonLint\Lexer::__construct()

File

vendor/twig/twig/src/Lexer.php, line 62

Class

Lexer
@author Fabien Potencier <fabien@symfony.com>

Namespace

Twig

Code

public function __construct(Environment $env, array $options = []) {
    $this->env = $env;
    $this->options = array_merge([
        'tag_comment' => [
            '{#',
            '#}',
        ],
        'tag_block' => [
            '{%',
            '%}',
        ],
        'tag_variable' => [
            '{{',
            '}}',
        ],
        'whitespace_trim' => '-',
        'whitespace_line_trim' => '~',
        'whitespace_line_chars' => ' \\t\\0\\x0B',
        'interpolation' => [
            '#{',
            '}',
        ],
    ], $options);
}
RSS feed
Powered by Drupal