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

Breadcrumb

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

function TokenStream::getPeek

Returns peeked token.

1 call to TokenStream::getPeek()
TokenStream::skipWhitespace in vendor/symfony/css-selector/Parser/TokenStream.php
Skips next whitespace if any.

File

vendor/symfony/css-selector/Parser/TokenStream.php, line 89

Class

TokenStream
CSS selector token stream.

Namespace

Symfony\Component\CssSelector\Parser

Code

public function getPeek() : Token {
    if (!$this->peeking) {
        $this->peeked = $this->getNext();
        $this->peeking = true;
    }
    return $this->peeked;
}

API Navigation

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