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

Breadcrumb

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

function Environment::updateOptionsHash

6 calls to Environment::updateOptionsHash()
Environment::addExtension in vendor/twig/twig/src/Environment.php
Environment::disableDebug in vendor/twig/twig/src/Environment.php
Disables debugging mode.
Environment::disableStrictVariables in vendor/twig/twig/src/Environment.php
Disables the strict_variables option.
Environment::enableDebug in vendor/twig/twig/src/Environment.php
Enables debugging mode.
Environment::enableStrictVariables in vendor/twig/twig/src/Environment.php
Enables the strict_variables option.

... See full list

File

vendor/twig/twig/src/Environment.php, line 883

Class

Environment
Stores the Twig configuration and renders templates.

Namespace

Twig

Code

private function updateOptionsHash() : void {
    $this->optionsHash = implode(':', [
        $this->extensionSet
            ->getSignature(),
        \PHP_MAJOR_VERSION,
        \PHP_MINOR_VERSION,
        self::VERSION,
        (int) $this->debug,
        (int) $this->strictVariables,
        $this->useYield ? '1' : '0',
    ]);
}
RSS feed
Powered by Drupal