function SystemThemeHooks::themeSuggestionsHtml

Same name and namespace in other branches
  1. 11.x core/modules/system/src/Hook/SystemThemeHooks.php \Drupal\system\Hook\SystemThemeHooks::themeSuggestionsHtml()

Implements hook_theme_suggestions_HOOK().

Attributes

#[Hook('theme_suggestions_html')]

File

core/modules/system/src/Hook/SystemThemeHooks.php, line 163

Class

SystemThemeHooks
Hook implementations for system.

Namespace

Drupal\system\Hook

Code

public function themeSuggestionsHtml(array $variables) : array {
  $path_args = explode('/', trim(\Drupal::service('path.current')->getPath(), '/'));
  return theme_get_suggestions($path_args, 'html');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.