function SystemThemeHooks::themeSuggestionsHtml

Implements hook_theme_suggestions_HOOK().

Attributes

#[Hook('theme_suggestions_html')]

File

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

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.