Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function build()
 {
     $breadcrumb = $this->breadcrumbManager->build($this->routeMatch);
     if (!empty($breadcrumb)) {
         // $breadcrumb is expected to be an array of rendered breadcrumb links.
         return array('#theme' => 'breadcrumb', '#links' => $breadcrumb);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function build()
 {
     $breadcrumb = $this->breadcrumbManager->build($this->routeMatch);
     if (!empty($breadcrumb)) {
         // $breadcrumb is expected to be an array of rendered breadcrumb links.
         $build = ['#theme' => 'breadcrumb', '#links' => $breadcrumb->getLinks()];
         $breadcrumb->applyTo($build);
         return $build;
     }
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function build()
 {
     return $this->breadcrumbManager->build($this->routeMatch)->toRenderable();
 }