From 55a4a1b4b6cf0402db09daf84ecb23c595b039cc Mon Sep 17 00:00:00 2001 From: edster Date: Thu, 25 Jul 2019 15:21:31 -0700 Subject: [PATCH] Flag to make a section a heading only Puts an element on a section so the that navigation can have sub menu items, without itself being a link. --- .../Component/Section/Section.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/Ui/ControlPanel/Component/Section/Section.php b/src/Ui/ControlPanel/Component/Section/Section.php index 331459b92..cc40cd959 100644 --- a/src/Ui/ControlPanel/Component/Section/Section.php +++ b/src/Ui/ControlPanel/Component/Section/Section.php @@ -131,7 +131,37 @@ class Section implements SectionInterface * @var bool */ protected $hidden = false; + + /** + * Heading Flag + * + * @var bool + */ + protected $heading_only = false; + /** + * Get the heading_only flag. + * + * @return boolean + */ + public function isHeadingOnly() + { + return $this->heading_only; + } + + /** + * Set the heading_only. + * + * @param $heading_only + * @return $this + */ + public function setHeadingOnly($flag) + { + $this->heading_only = $flag; + + return $this; + } + /** * Get the slug. *