\Charcoal\Cms\Support\InterfacesSectionLoaderAwareInterface

Summary

Methods
Constants
sections()
masterSections()
childrenSections()
routes()
currentSection()
sectionFromSlug()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

sections()

sections() : \ArrayAccess|\Traversable

Returns

\ArrayAccess|\Traversable

masterSections()

masterSections() : \ArrayAccess|\Traversable

Returns

\ArrayAccess|\Traversable

childrenSections()

childrenSections() : \ArrayAccess|\Traversable

Returns

\ArrayAccess|\Traversable

routes()

routes() : \ArrayAccess|\Traversable

Gets the latest route for the given slug.

Returns

\ArrayAccess|\Traversable

currentSection()

currentSection(boolean  $raw = false) : array|\Charcoal\Cms\SectionInterface

Gets the current section based on AbstractTemplate::Section and context.

Parameters

boolean $raw

Option the receive the non-formatted section.

Returns

array|\Charcoal\Cms\SectionInterface

sectionFromSlug()

sectionFromSlug(string  $slug) : \Charcoal\Cms\SectionInterface|array

Parameters

string $slug

The section slug to load from.

Returns

\Charcoal\Cms\SectionInterface|array