contentBlocks()
contentBlocks() : \Charcoal\Cms\Mixin\Traits\Collection|array<mixed,\Charcoal\Cms\Mixin\Traits\Attachment>
Retrieve this object's content blocks.
An implementation, as Trait, of the `HasContentBlocksInterface`.
attachments(string|null $group = null, string|null $type = null, callable|null $callback = null) : \Charcoal\Cms\Mixin\Traits\Collection|array<mixed,\Charcoal\Cms\Mixin\Traits\Attachment>
Retrieve the objects associated to the current object.
As defined in Charcoal\Attachment\Traits\AttachmentAwareTrait.
string|null | $group | Filter the attachments by a group identifier. |
string|null | $type | Filter the attachments by type. |
callable|null | $callback | Optional routine to apply to every attachment. |
If the $group or $type is invalid.
metaDescFromAttachments() : \Charcoal\Translator\Translation|null|string|array<mixed,\string>
Gets the content excerpt from attachments if a text attachment is found, otherwise it return null.
The content from attachment
ellipsis(string|\Charcoal\Translator\Translation $content, integer $length = 200) : string|\Charcoal\Translator\Translation
string|\Charcoal\Translator\Translation | $content | The content to shorten. |
integer | $length | The length to shorten to. Default : 200. |