ModifierNode
class ModifierNode extends Node
Chain of filters with auto-escape flag.
Properties
| deprecated | $check |
Methods
__construct(array $filters, bool $escape = false, Position|null $position = null)
No description
bool
hasFilter(string $name)
No description
FilterNode|null
removeFilter(string $name, string $position = '')
Removes and returns a matching filter, or null if no matching filter is found at the requested position.
string
string
string
getIterator()
No description
Details
at line 25
__construct(array $filters, bool $escape = false, Position|null $position = null)
No description
at line 35
bool
hasFilter(string $name)
No description
at line 51
FilterNode|null
removeFilter(string $name, string $position = '')
Removes and returns a matching filter, or null if no matching filter is found at the requested position.
Position: '' (default) = anywhere, 'first' = only at index 0, 'last' = only at the last index.
at line 68
string
print(PrintContext $context)
No description
at line 74
string
printSimple(PrintContext $context, string $expr)
No description
at line 85
string
printContentAware(PrintContext $context, string $expr)
No description
at line 97
Generator
getIterator()
No description