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

Breadcrumb

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

function ExtensionSet::addTokenParser

File

vendor/twig/twig/src/ExtensionSet.php, line 270

Class

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

Namespace

Twig

Code

public function addTokenParser(TokenParserInterface $parser) : void {
    if ($this->initialized) {
        throw new \LogicException('Unable to add a token parser as extensions have already been initialized.');
    }
    $this->staging
        ->addTokenParser($parser);
}
RSS feed
Powered by Drupal