protected function build() { if (!is_null($parent = $this->page->getRootSection())) { $this->addBreadcrumb($parent); } if (!is_null($title = $this->page->getName())) { $this->breadcrumbs->add($this->page->getName(), $this->page->getUrl()); } }
protected function build() { if (!is_null($parent = $this->page->getRootSection())) { $this->addBreadcrumb($parent); } if (!is_null($title = $this->page->getName())) { $this->breadcrumbs->add($this->page->getName(), $this->page->getUrl()); } }