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

Breadcrumb

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

function LoaderInterface::getSourceContext

Returns the source context for a given template logical name.

Throws

LoaderError When $name is not found

5 methods override LoaderInterface::getSourceContext()
ArrayLoader::getSourceContext in vendor/twig/twig/src/Loader/ArrayLoader.php
Returns the source context for a given template logical name.
ChainLoader::getSourceContext in vendor/twig/twig/src/Loader/ChainLoader.php
Returns the source context for a given template logical name.
ComponentLoader::getSourceContext in core/lib/Drupal/Core/Template/Loader/ComponentLoader.php
Returns the source context for a given template logical name.
FilesystemLoader::getSourceContext in vendor/twig/twig/src/Loader/FilesystemLoader.php
Returns the source context for a given template logical name.
StringLoader::getSourceContext in core/lib/Drupal/Core/Template/Loader/StringLoader.php
Returns the source context for a given template logical name.

File

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

Class

LoaderInterface
Interface all loaders must implement.

Namespace

Twig\Loader

Code

public function getSourceContext(string $name) : Source;

API Navigation

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