iconCache example


    protected static bool $enabled = false;

    protected static array $iconCache = [];

    /** * @return TwigFilter[] */
    public function getFilters(): array
    {
        return [
            new TwigFilter('sw_icon_cache', $this->iconCache(...)),
        ];
    }

    /** * @return TwigFunction[] */
    public function getFunctions(): array
    {
        return [
            new TwigFunction('sw_icon_cache_enable', $this->enable(...)),
            new TwigFunction('sw_icon_cache_disable', $this->disable(...)),
        ];
Home | Imprint | This part of the site doesn't use cookies.