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

Breadcrumb

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

function TokenStream::test

Tests the current token.

File

vendor/twig/twig/src/TokenStream.php, line 106

Class

TokenStream
Represents a token stream.

Namespace

Twig

Code

public function test($primary, $secondary = null) : bool {
    return $this->tokens[$this->current]
        ->test($primary, $secondary);
}

API Navigation

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