Closed geerlingguy closed 4 years ago
Moved remaining items to #41
Kevin Quillen (https://drupal.stackexchange.com/a/263656/26) had a nice little answer that was helpful in getting theme hook suggestions specific to a view using \Drupal::routeMatch()->getParameter('view_id')
:
/**
* Implements hook_theme_suggestions_HOOK_alter().
*/
function jeffgeerling_theme_suggestions_page_title_alter(array &$suggestions, array $variables) {
if ($view_id = \Drupal::routeMatch()->getParameter('view_id')) {
$suggestions[] = 'page_title__view_' . $view_id;
}
}
Works a treat!
Episode 8 Livestream: https://www.youtube.com/watch?v=v7S0BB6V7eA
See previous agenda: #28