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

Breadcrumb

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

function RuntimeLoaderInterface::load

Creates the runtime implementation of a Twig element (filter/function/test).

Return value

object|null The runtime instance or null if the loader does not know how to create the runtime for this class

2 methods override RuntimeLoaderInterface::load()
ContainerRuntimeLoader::load in vendor/twig/twig/src/RuntimeLoader/ContainerRuntimeLoader.php
Creates the runtime implementation of a Twig element (filter/function/test).
FactoryRuntimeLoader::load in vendor/twig/twig/src/RuntimeLoader/FactoryRuntimeLoader.php
Creates the runtime implementation of a Twig element (filter/function/test).

File

vendor/twig/twig/src/RuntimeLoader/RuntimeLoaderInterface.php, line 26

Class

RuntimeLoaderInterface
Creates runtime implementations for Twig elements (filters/functions/tests).

Namespace

Twig\RuntimeLoader

Code

public function load(string $class);
RSS feed
Powered by Drupal