public function RequestTitle::getTitle in Breadcrumb Manager 8
Get title.
Parameters
string $path: The path.
\Symfony\Component\HttpFoundation\Request $request: The Request.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The Route match.
Return value
string The resolved title.
Overrides BreadcrumbTitleResolverInterface::getTitle
File
- src/
Plugin/ BreadcrumbTitleResolver/ RequestTitle.php, line 57
Class
- RequestTitle
- Class RequestTitle.
Namespace
Drupal\breadcrumb_manager\Plugin\BreadcrumbTitleResolverCode
public function getTitle($path, Request $request, RouteMatchInterface $route_match) {
$route = $route_match
->getRouteObject();
return $this->titleResolver
->getTitle($request, $route);
}