TagImplementation
class TagImplementation extends AbstractFusionObject (View source)
A Fusion object for tag based content
//fusionPath attributes An array with attributes for this tag (optional) //fusionPath content Content for the body of the tag (optional)
Properties
protected Runtime | $runtime | from AbstractFusionObject | |
protected string | $path | The Fusion path currently being rendered |
from AbstractFusionObject |
protected string | $fusionObjectName | Name of this Fusion object, like Neos.Neos:Text |
from AbstractFusionObject |
protected array | $fusionValueCache | from AbstractFusionObject | |
static protected array | $SELF_CLOSING_TAGS | List of self-closing tags |
Methods
Return a tag
Return the Fusion value relative to this Fusion object (with processors etc applied).
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
The tag name (e.g. 'body', 'head', 'title', ...)
Whether to leave out the closing tag (defaults to false)
Whether to force a self closing tag (e.g. '
')The tag content
The tag attributes dataStructure If anything but an iterable is returned the value is casted to string
Whether empty attributes (HTML5 syntax) should be allowed
Render the tag attributes for the given key->values as atring, if an value is an iterable it will be concatenated with spaces as seperator
Details
__construct(Runtime $runtime, string $path, string $fusionObjectName)
Constructor
mixed
evaluate()
Return a tag
Runtime
getRuntime()
Get the Fusion runtime this object was created in.
protected mixed
fusionValue(string $path)
Return the Fusion value relative to this Fusion object (with processors etc applied).
Note that subsequent calls of fusionValue() with the same Fusion path will return the same values since the first evaluated value will be cached in memory.
bool
offsetExists(mixed $offset)
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
mixed
offsetGet(mixed $offset)
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
void
offsetSet(mixed $offset, mixed $value)
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
void
offsetUnset(mixed $offset)
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
string
getTagName()
The tag name (e.g. 'body', 'head', 'title', ...)
bool
getOmitClosingTag()
Whether to leave out the closing tag (defaults to false)
bool
isSelfClosingTag(string $tagName)
Whether to force a self closing tag (e.g. '
')
protected string
getContent()
The tag content
protected iterable|string
getAttributes()
The tag attributes dataStructure If anything but an iterable is returned the value is casted to string
protected bool
getAllowEmptyAttributes()
Whether empty attributes (HTML5 syntax) should be allowed
protected string
renderAttributes(iterable $attributes, bool $allowEmpty = true)
Render the tag attributes for the given key->values as atring, if an value is an iterable it will be concatenated with spaces as seperator