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

Breadcrumb

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

function LoaderInterface::getCacheKey

Gets the cache key to use for the cache for a given template name.

Throws

LoaderError When $name is not found

5 methods override LoaderInterface::getCacheKey()
ArrayLoader::getCacheKey in vendor/twig/twig/src/Loader/ArrayLoader.php
Gets the cache key to use for the cache for a given template name.
ChainLoader::getCacheKey in vendor/twig/twig/src/Loader/ChainLoader.php
Gets the cache key to use for the cache for a given template name.
ComponentLoader::getCacheKey in core/lib/Drupal/Core/Template/Loader/ComponentLoader.php
Gets the cache key to use for the cache for a given template name.
FilesystemLoader::getCacheKey in vendor/twig/twig/src/Loader/FilesystemLoader.php
Gets the cache key to use for the cache for a given template name.
StringLoader::getCacheKey in core/lib/Drupal/Core/Template/Loader/StringLoader.php
Gets the cache key to use for the cache for a given template name.

File

vendor/twig/twig/src/Loader/LoaderInterface.php, line 36

Class

LoaderInterface
Interface all loaders must implement.

Namespace

Twig\Loader

Code

public function getCacheKey(string $name) : string;

API Navigation

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