ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_RuntimeLoaderInterface Interface Reference

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

+ Inheritance diagram for Twig_RuntimeLoaderInterface:
+ Collaboration diagram for Twig_RuntimeLoaderInterface:

Public Member Functions

 load ($class)
 Creates the runtime implementation of a Twig element (filter/function/test). More...
 

Detailed Description

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

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Definition at line 17 of file RuntimeLoaderInterface.php.

Member Function Documentation

◆ load()

Twig_RuntimeLoaderInterface::load (   $class)

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

Parameters
string$classA runtime class
Returns
object|null The runtime instance or null if the loader does not know how to create the runtime for this class

Implemented in Twig_ContainerRuntimeLoader, and Twig_FactoryRuntimeLoader.


The documentation for this interface was generated from the following file: