Skip to content

Move method Twig_Template::getAttribute to function #536

Description

@Koc

I'm propose move this method to twig_template_get_attributes function.

What we can get:

  1. simplify compilation when php extension avalible (no more conditions like https://github.com/fabpot/Twig/blob/master/lib/Twig/Node/Expression/GetAttr.php#L19 )
  2. some extensions (filters) get possibility use it Array sorting by object property or array index #535

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions