CurrentObjectPath

FinalYes

Internal state class to track the current hierarchy in tree.

This is important in combination with block open "{" and block close "}" brackets. Also used in BE Template Object Browser tree rendering.

Tags
internal:

Internal AST structure.

Table of Contents

Methods

__construct()  : mixed
append()  : void
getAll()  : array<string|int, NodeInterface>
getFirst()  : NodeInterface
getLast()  : NodeInterface
getPathAsString()  : string
Turn current object path into a string. Quote dots in keys.
getSecondLast()  : NodeInterface
removeLast()  : void

Methods

getPathAsString()

Turn current object path into a string. Quote dots in keys.

public getPathAsString() : string

Used in BE Template Object Browser tree, expand and search handling. Not implementing __toString() here since Fluid can't call this.

Example: page.10.foo.bar.baz

Return values
string

        
On this page

Search results