function opigno_dashboard_theme_suggestions_alter in Opigno dashboard 8
Implements hook_theme_suggestions_alter().
File
- ./
opigno_dashboard.module, line 127 - Contains opigno_dashboard.module.
Code
function opigno_dashboard_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
// Override default frontpage content region.
if (\Drupal::routeMatch()
->getRouteName() == 'view.frontpage.page_1' && in_array('region__content', $suggestions)) {
$suggestions[] = 'opigno_dashboard';
}
if (\Drupal::routeMatch()
->getRouteName() == 'opigno_dashboard.dashboard_admin_default_settings' && in_array('region__content', $suggestions)) {
$suggestions[] = 'opigno_dashboard_default';
}
}