CommandWithAttachedAssetsTrait
trait CommandWithAttachedAssetsTrait (View source)
Trait for Ajax commands that render content and attach assets.
Properties
| protected AttachedAssets | $attachedAssets | The attached assets for this Ajax command. |
Methods
string|MarkupInterface
getRenderedContent()
Processes the content for output.
AttachedAssets|null
getAttachedAssets()
Gets the attached assets.
Details
protected string|MarkupInterface
getRenderedContent()
Processes the content for output.
If content is a render array, it may contain attached assets to be processed.
AttachedAssets|null
getAttachedAssets()
Gets the attached assets.