Skip to content

Update Twig extension documentation to use 1.12 changes #2421

Closed
@weaverryan

Description

@weaverryan

This will apply to 2.1+. As of Twig 1.12, creating a Twig extension is slightly different. For example, Twig_Function_Function is replaced by Twig_SimpleFunction.

Both the old and new version of the Twig docs are maintained, which is nice for comparison:

Old: http://twig.sensiolabs.org/doc/advanced_legacy.html#creating-an-extension
New: http://twig.sensiolabs.org/doc/advanced.html#creating-an-extension

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionableClear and specific issues ready for anyone to take them.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions