$section
$section : \Charcoal\Cms\SectionInterface
$section : \Charcoal\Cms\SectionInterface
$sections : array<mixed,\Charcoal\Cms\SectionInterface>
$masterSections : array<mixed,\Charcoal\Cms\SectionInterface>
$childrenSections : array<mixed,\Charcoal\Cms\SectionInterface>
$sectionLoader : \Charcoal\Cms\Service\Loader\SectionLoader
currentSection(boolean $raw = false) : array|\Charcoal\Cms\SectionInterface
Gets the current section based on AbstractTemplate::Section and context.
boolean | $raw | Option the receive the non-formatted section. |
sectionFromSlug(string $slug) : \Charcoal\Cms\SectionInterface|array
string | $slug | The section slug to load from. |
section() : \Charcoal\Cms\SectionInterface
setSection(\Charcoal\Cms\SectionInterface $section) : self
\Charcoal\Cms\SectionInterface | $section | The current section. |
sectionLoader() : \Charcoal\Cms\Service\Loader\SectionLoader
When dependency is missing.
setSectionLoader(\Charcoal\Cms\Service\Loader\SectionLoader $loader) : self
\Charcoal\Cms\Service\Loader\SectionLoader | $loader | The section loader. |
formatSection(\Charcoal\Cms\SectionInterface $section) : array
\Charcoal\Cms\SectionInterface | $section | The section to format. |