system_theme_suggestions_page

system_theme_suggestions_page(array $variables)

Implements hook_theme_suggestions_HOOK().

File

core/modules/system/system.module, line 266
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');
}
doc_Drupal
2016-10-29 09:46:00
Comments
Leave a Comment

Please login to continue.