Problem/Motivation
If I want to get the title of the current page so I can add it to a breadcrumb. I'm doing something like:
$title = \Drupal::service('title_resolver')->getTitle(\Drupal::request(), \Drupal::routeMatch()->getRouteObject());
This doesn't currently work for views pages?
This was done in D7 with drupal_get_title() - https://www.drupal.org/node/2067859
Proposed resolution
Add _title into the view display route.
Remaining tasks
Discuss if this is the right solution? Review, Tests
User interface changes
n/a
API changes
n/a
Data model changes
n/a
Comments
Comment #3
benjy commentedComment #4
dawehnerSee #2516742: Allow Views to be resolved by TitleResolver