function SectionListTrait::count
Same name in other branches
- 9 core/modules/layout_builder/src/SectionListTrait.php \Drupal\layout_builder\SectionListTrait::count()
- 10 core/modules/layout_builder/src/SectionListTrait.php \Drupal\layout_builder\SectionListTrait::count()
1 call to SectionListTrait::count()
- SectionListTrait::appendSection in core/
modules/ layout_builder/ src/ SectionListTrait.php
File
-
core/
modules/ layout_builder/ src/ SectionListTrait.php, line 28
Class
- SectionListTrait
- Provides a trait for maintaining a list of sections.
Namespace
Drupal\layout_builderCode
public function count() : int {
if ($this->hasBlankSection()) {
return 0;
}
return count($this->getSections());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.