BreakTokenParser example

use Twig\TwigFilter;
use Twig\TwigFunction;
use Twig\TwigTest;

#[Package('core')] class PhpSyntaxExtension extends AbstractExtension
{
    public function getTokenParsers(): array
    {
        return [
            new ForeachTokenParser(),
            new BreakTokenParser(),
            new ContinueTokenParser(),
            new ReturnNodeTokenParser(),
        ];
    }

    /** * @return TwigFilter[] */
    public function getFilters()
    {
        return [
            
Home | Imprint | This part of the site doesn't use cookies.