Skip to content
This repository was archived by the owner on Jun 6, 2020. It is now read-only.

Latest commit

 

History

History
17 lines (11 loc) · 757 Bytes

theme-configuration-reference.md

File metadata and controls

17 lines (11 loc) · 757 Bytes

Theme configuration reference

Templating

The ThemeBundle provides a number of functions to use in templates.

Twig Extensions

Twig Function Templating Helper Arguments Explanation
asset_theme getThemeUrl string $path, string $packageName = null A Twig function to get assets from a theme path.
asset getAssetUrl string $path, string $packageName = null Override default function, check asset exists in current active theme, otherwise fallback to original path.
Twig Filter Templating Helper Arguments Explanation
theme getThemeUrl string $path, string $packageName = null A Twig filter to get assets from a theme path.