Documentation

RuntimeLoaderInterface

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

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

load()  : object|null
Creates the runtime implementation of a Twig element (filter/function/test).

Methods

load()

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

public load(string $class) : object|null
Parameters
$class : string

A runtime class

Return values
object|null

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

Search results