SectionListInterface
interface SectionListInterface implements Countable (View source)
Defines the interface for an object that stores layout sections.
Methods
Section[]
getSections()
Gets the layout sections.
getSection(int $delta)
Gets a domain object for the layout section.
$this
$this
$this
removeSection(int $delta)
Removes the section at the given delta.
$this
removeAllSections(bool $set_blank = FALSE)
Removes all of the sections.
Details
Section[]
getSections()
Gets the layout sections.
Section
getSection(int $delta)
Gets a domain object for the layout section.
$this
appendSection(Section $section)
Appends a new section to the end of the list.
$this
insertSection(int $delta, Section $section)
Inserts a new section at a given delta.
If a section exists at the given index, the section at that position and others after it are shifted backward.
$this
removeSection(int $delta)
Removes the section at the given delta.
As sections are stored sequentially and numerically this will re-key every subsequent section, shifting them forward.
$this
removeAllSections(bool $set_blank = FALSE)
Removes all of the sections.