You are here

public function AtToolLazyBuilders::breadcrumbTitle in AT Tool 2.0 1.0.x

Return values for the breadcrumb title placeholder.

Return value

array A renderable array of breadcrumb title.

File

src/AtToolLazyBuilders.php, line 58

Class

AtToolLazyBuilders
Lazy builders for the at_tool.

Namespace

Drupal\at_tool

Code

public function breadcrumbTitle() {
  $request = $this->requestStack
    ->getCurrentRequest();
  $route = $this->routeMatch
    ->getRouteObject();
  $title = $this->titleResolver
    ->getTitle($request, $route);
  $array = [
    '#theme' => 'page_title__breadcrumb',
    '#title' => $title,
  ];
  return $array;
}