Skip to content

DeprecatedTokenParser ​

Type
Class
Namespace
craft\web\twig\tokenparsers
Inherits
craft\web\twig\tokenparsers\DeprecatedTokenParser » Twig\TokenParser\AbstractTokenParser
Since
3.7.24

Deprecates a section of a template.

twig
{% deprecated 'The "base.twig" template is deprecated, use "layout.twig" instead.' %}
{% extends 'layout.html.twig' %}

View source

Public Methods ​

MethodDescription
getTag()
parse()

getTag() ​

View source

parse() ​

View source

Arguments ​

  • $token