\Charcoal\Cms\MixinHasContentBlocksInterface

Defines flexible nodes of palpable content (e.g., a magazine or newspaper article, a blog entry).

See HasContentBlocksTrait for a basic implementation.

Summary

Methods
Constants
contentBlocks()
hasContentBlocks()
numContentBlocks()
defaultMetaDescription()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

contentBlocks()

contentBlocks() : \Charcoal\Cms\Mixin\Collection|array<mixed,\Charcoal\Cms\Mixin\Attachment>

Retrieve this object's content blocks.

Returns

\Charcoal\Cms\Mixin\Collection|array<mixed,\Charcoal\Cms\Mixin\Attachment>

hasContentBlocks()

hasContentBlocks() : boolean

Determine if this object has any content blocks.

Returns

boolean

numContentBlocks()

numContentBlocks() : integer

Count the number of content blocks associated to this object.

Returns

integer

defaultMetaDescription()

defaultMetaDescription() : \Charcoal\Cms\Mixin\Translation

Returns

\Charcoal\Cms\Mixin\Translation