initExtensions example



        $this->staging->addFunction($function);
    }

    /** * @return TwigFunction[] */
    public function getFunctions(): array
    {
        if (!$this->initialized) {
            $this->initExtensions();
        }

        return $this->functions;
    }

    public function getFunction(string $name): ?TwigFunction
    {
        if (!$this->initialized) {
            $this->initExtensions();
        }

        
Home | Imprint | This part of the site doesn't use cookies.