From fd274fa874c12c00b09ce21fa52d68b02b11afa2 Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 4 Mar 2019 14:14:24 +0300 Subject: [PATCH] Flextype Core: Assets Twig Extension - updates --- flextype/twig/AssetsTwigExtension.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flextype/twig/AssetsTwigExtension.php b/flextype/twig/AssetsTwigExtension.php index ba1bac6b..31faf773 100644 --- a/flextype/twig/AssetsTwigExtension.php +++ b/flextype/twig/AssetsTwigExtension.php @@ -28,6 +28,11 @@ class AssetsTwigExtension extends \Twig_Extension ]; } + public function add(string $asset_type, string $asset, string $namespace, int $priority = 1) : void + { + return Assets::add($asset_type, $asset, $namespace, $priority); + } + public function get(string $asset_type, string $namespace) : array { return Assets::get($asset_type, $namespace);