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\RuntimeLoaderCode
public function load(string $class);