interface Twig_RuntimeLoaderInterface

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

Methods

object|null
load(string $class)

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

Details

at line 26
object|null load(string $class)

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

Parameters

string $class A runtime class

Return Value

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