Search for all

  1. Search 7.x for all
  2. Search 8.9.x for all
  3. Search 10.3.x for all
  4. Search 11.x for all
  5. Search main for all
  6. Other projects
Title Object type File name Summary
TwigPhpStorageCache class core/lib/Drupal/Core/Template/TwigPhpStorageCache.php Provides an alternate cache storage for Twig using PhpStorage.
TwigPhpStorageCache.php file core/lib/Drupal/Core/Template/TwigPhpStorageCache.php
TwigPhpStorageCache::$cache property core/lib/Drupal/Core/Template/TwigPhpStorageCache.php The cache object used for auto-refresh via mtime.
TwigPhpStorageCache::$storage property core/lib/Drupal/Core/Template/TwigPhpStorageCache.php The PhpStorage object used for storing the templates.
TwigPhpStorageCache::$templateCacheFilenamePrefix property core/lib/Drupal/Core/Template/TwigPhpStorageCache.php The template cache filename prefix.
TwigPhpStorageCache::generateKey function core/lib/Drupal/Core/Template/TwigPhpStorageCache.php
TwigPhpStorageCache::getTimestamp function core/lib/Drupal/Core/Template/TwigPhpStorageCache.php
TwigPhpStorageCache::load function core/lib/Drupal/Core/Template/TwigPhpStorageCache.php
TwigPhpStorageCache::storage function core/lib/Drupal/Core/Template/TwigPhpStorageCache.php Gets the PHP code storage object to use for the compiled Twig files.
TwigPhpStorageCache::SUFFIX_SUBSTRING_LENGTH constant core/lib/Drupal/Core/Template/TwigPhpStorageCache.php The maximum length for each part of the cache key suffix.
TwigPhpStorageCache::write function core/lib/Drupal/Core/Template/TwigPhpStorageCache.php
TwigPhpStorageCache::__construct function core/lib/Drupal/Core/Template/TwigPhpStorageCache.php Store cache backend and other information internally.
TwigRawTest class core/modules/system/tests/src/Kernel/Theme/TwigRawTest.php Tests Twig 'raw' filter.
TwigRawTest.php file core/modules/system/tests/src/Kernel/Theme/TwigRawTest.php
TwigRawTest::$modules property core/modules/system/tests/src/Kernel/Theme/TwigRawTest.php Modules to enable.
TwigRawTest::testAutoescape function core/modules/system/tests/src/Kernel/Theme/TwigRawTest.php Tests autoescaping of unsafe content.
TwigRawTest::testAutoescapeRaw function core/modules/system/tests/src/Kernel/Theme/TwigRawTest.php Tests the raw filter inside an autoescape tag.
TwigRegistryLoaderTest class core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php Tests Twig registry loader.
TwigRegistryLoaderTest.php file core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php
TwigRegistryLoaderTest::$defaultTheme property core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php The theme to install as the default for testing.
TwigRegistryLoaderTest::$modules property core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php Modules to enable.
TwigRegistryLoaderTest::$twig property core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php
TwigRegistryLoaderTest::assertTwigTemplate function core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php Checks to see if a value is a Twig template.
TwigRegistryLoaderTest::setUp function core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php
TwigRegistryLoaderTest::testTemplateDiscovery function core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php Tests template discovery using the Drupal theme registry.
TwigRegistryLoaderTest::testTwigNamespaces function core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php Tests template extension and includes using the Drupal theme registry.
TwigSandboxPolicy class core/lib/Drupal/Core/Template/TwigSandboxPolicy.php Default sandbox policy for Twig templates.
TwigSandboxPolicy.php file core/lib/Drupal/Core/Template/TwigSandboxPolicy.php
TwigSandboxPolicy::$allowed_classes property core/lib/Drupal/Core/Template/TwigSandboxPolicy.php An array of class names for which any method calls are allowed.
TwigSandboxPolicy::$allowed_methods property core/lib/Drupal/Core/Template/TwigSandboxPolicy.php An array of allowed methods in the form of methodName => TRUE.
TwigSandboxPolicy::$allowed_prefixes property core/lib/Drupal/Core/Template/TwigSandboxPolicy.php Allowed method prefixes.
TwigSandboxPolicy::checkMethodAllowed function core/lib/Drupal/Core/Template/TwigSandboxPolicy.php
TwigSandboxPolicy::checkPropertyAllowed function core/lib/Drupal/Core/Template/TwigSandboxPolicy.php
TwigSandboxPolicy::checkSecurity function core/lib/Drupal/Core/Template/TwigSandboxPolicy.php
TwigSandboxPolicy::__construct function core/lib/Drupal/Core/Template/TwigSandboxPolicy.php Constructs a new TwigSandboxPolicy object.
TwigSandboxTest class core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests the twig sandbox policy.
TwigSandboxTest.php file core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Contains \Drupal\Tests\Core\Template\TwigSandboxTest.
TwigSandboxTest::$twig property core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php The Twig environment loaded with the sandbox extension.
TwigSandboxTest::getTwigEntityDangerousMethods function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Data provider for ::testEntityDangerousMethods.
TwigSandboxTest::setUp function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php
TwigSandboxTest::testEntityDangerousMethods function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that dangerous methods cannot be called in entity objects.
TwigSandboxTest::testEntitySafeMethods function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that valid methods can be called from within Twig templates.
TwigSandboxTest::testEntitySafePrefixes function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that prefixed methods can be called from within Twig templates.
TwigSandboxTest::testExtendedClass function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that white listed classes can be extended.
TwigSandboxTest::testUrlSafeMethods function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that safe methods inside Url objects can be called.
TwigSettingsTest class core/modules/system/tests/src/Functional/Theme/TwigSettingsTest.php Tests overriding Twig engine settings via settings.php.
TwigSettingsTest.php file core/modules/system/tests/src/Functional/Theme/TwigSettingsTest.php
TwigSettingsTest::$defaultTheme property core/modules/system/tests/src/Functional/Theme/TwigSettingsTest.php The theme to install as the default for testing.
TwigSettingsTest::$modules property core/modules/system/tests/src/Functional/Theme/TwigSettingsTest.php Modules to enable.
TwigSettingsTest::testTwigAutoReloadOverride function core/modules/system/tests/src/Functional/Theme/TwigSettingsTest.php Ensures Twig template auto reload setting can be overridden.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.