You are here

function system_theme_suggestions_page in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/system.module \system_theme_suggestions_page()

Implements hook_theme_suggestions_HOOK().

File

core/modules/system/system.module, line 257
Configuration system that lets administrators modify the workings of the site.

Code

function system_theme_suggestions_page(array $variables) {
  if (\Drupal::service('path.matcher')
    ->isFrontPage()) {
    $path_args = [
      '',
    ];
  }
  else {
    $path_args = explode('/', Url::fromRoute('<current>')
      ->getInternalPath());
  }
  return theme_get_suggestions($path_args, 'page');
}