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

Breadcrumb

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

function Token::__construct

Same name in this branch
  1. 11.1.x vendor/theseer/tokenizer/src/Token.php \TheSeer\Tokenizer\Token::__construct()
  2. 11.1.x vendor/doctrine/lexer/src/Token.php \Doctrine\Common\Lexer\Token::__construct()
  3. 11.1.x vendor/twig/twig/src/Token.php \Twig\Token::__construct()
  4. 11.1.x vendor/symfony/css-selector/Parser/Token.php \Symfony\Component\CssSelector\Parser\Token::__construct()
  5. 11.1.x core/lib/Drupal/Core/Utility/Token.php \Drupal\Core\Utility\Token::__construct()

Class constructor

Parameters

string $type Token's type:

string $value Token's value:

File

vendor/mck89/peast/lib/Peast/Syntax/Token.php, line 121

Class

Token
A token emitted by the tokenizer.

Namespace

Peast\Syntax

Code

public function __construct($type, $value) {
    $this->type = $type;
    $this->value = $value;
    $this->location = new SourceLocation();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal