Overview

Namespaces

  • Charcoal
    • Admin
      • Widget
        • Cms
    • Cms
      • Config
      • Mixin
        • Traits
      • Route
      • Section
      • Service
        • Loader
        • Manager
      • ServiceProvider
      • Support
        • Helpers
        • Interfaces
        • Traits
    • Property

Interfaces

  • EventManagerAwareInterface
  • NewsManagerAwareInterface
  • SectionLoaderAwareInterface
  • Overview
  • Namespace
  • Class

Interface SectionLoaderAwareInterface

Namespace: Charcoal\Cms\Support\Interfaces
Located at Charcoal/Cms/Support/Interfaces/SectionLoaderAwareInterface.php
Methods summary
public ArrayAccess|Traversable
# sections( )

Returns

ArrayAccess|Traversable
public ArrayAccess|Traversable
# masterSections( )

Returns

ArrayAccess|Traversable
public ArrayAccess|Traversable
# childrenSections( )

Returns

ArrayAccess|Traversable
public ArrayAccess|Traversable
# routes( )

Gets the latest route for the given slug.

Gets the latest route for the given slug.

Returns

ArrayAccess|Traversable
public array|Charcoal\Cms\SectionInterface
# currentSection( boolean $raw = false )

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

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

Parameters

$raw
Option the receive the non-formatted section.

Returns

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

Parameters

$slug
The section slug to load from.

Returns

Charcoal\Cms\SectionInterface|array
API documentation generated by ApiGen