Get title from Route I am trying to print out a few links on a custom page template. I would like to use the title and url from each route. 

I am trying to print out the title from the route.

I know I can get the url from:  

$url = Url::fromRoute('route.name');


and I know I can get the current page title from 

$request = \Drupal::request();
  if ($route = $request-&gt;attributes-&gt;get(\Symfony\Cmf\Component\Routing\RouteObjectInterface::ROUTE_OBJECT)) {
    $title = \Drupal::service('title_resolver')-&gt;getTitle($request, $route); }


but I am not sure how to request the title from a specific/ different route. 

Thanks in advance.
The only way to get the page title of any URL/route would be to actually request the page and see what the title is. The reason is that any module or the theme could alter the title from what it normally would be, like fx metatags module.