Example #1
0
 /**
  * Augments (@link Hierarchy::stageChildren()}
  *
  * @param boolean showAll Include all of the elements, even those not shown in the menus.
  *   (only applicable when extension is applied to {@link SiteTree}).
  * @return DataList
  */
 public function stageChildren($showAll = false)
 {
     $staged = parent::stageChildren($showAll);
     if ($this->shouldFilter()) {
         // Filter the SiteTree
         return $staged->exclude("ClassName", $this->owner->getExcludedSiteTreeClassNames());
     }
     return $staged;
 }