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

Breadcrumb

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

function TokenEmulator::emulate

Parameters

Token[] $tokens Original tokens:

Return value

Token[] Modified Tokens

6 methods override TokenEmulator::emulate()
AsymmetricVisibilityTokenEmulator::emulate in vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php
AttributeEmulator::emulate in vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AttributeEmulator.php
ExplicitOctalEmulator::emulate in vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php
KeywordEmulator::emulate in vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/KeywordEmulator.php
NullsafeTokenEmulator::emulate in vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/NullsafeTokenEmulator.php

... See full list

File

vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/TokenEmulator.php, line 18

Class

TokenEmulator
@internal

Namespace

PhpParser\Lexer\TokenEmulator

Code

public abstract function emulate(string $code, array $tokens) : array;

API Navigation

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