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

Breadcrumb

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

function ExtensionSet::addTest

File

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

Class

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

Namespace

Twig

Code

public function addTest(TwigTest $test) : void {
    if ($this->initialized) {
        throw new \LogicException(\sprintf('Unable to add test "%s" as extensions have already been initialized.', $test->getName()));
    }
    $this->staging
        ->addTest($test);
}
RSS feed
Powered by Drupal