Core Theme Components

TimberLoader extends Timber

Factory class for loading the Timber library. The factory avoids calling `Timber::backwards_compatibility()` which has some incompatibilities with Symfony's autoloader.

Table of Contents

$instance  : Timber
load()  : Timber
Loads the Timber environment. Initialization values can be optionally passed as a dictionary: 'locations', 'dirname', 'cache', 'autoescape'

Properties

Methods

load()

Loads the Timber environment. Initialization values can be optionally passed as a dictionary: 'locations', 'dirname', 'cache', 'autoescape'

public static load([array<string|int, mixed> $init = [] ]) : Timber
Parameters
$init : array<string|int, mixed> = []
Return values
Timber

Search results