diff --git a/core/lib/Drupal/Core/Theme/ThemeManager.php b/core/lib/Drupal/Core/Theme/ThemeManager.php index fda8073..f9545af 100644 --- a/core/lib/Drupal/Core/Theme/ThemeManager.php +++ b/core/lib/Drupal/Core/Theme/ThemeManager.php @@ -173,9 +173,9 @@ public function render($hook, array $variables) { if (is_string($hook)) { \Drupal::logger('theme')->warning('Theme hook %hook not found.', ['%hook' => $hook]); } - // There is no theme implementation for the hook passed. Return FALSE so - // the calling function can differentiate between a hook that exists and - // renders an empty string, and a hook that is not implemented. + // There is no theme implementation for the hook(s) passed. Return FALSE + // so the calling function can differentiate between a hook that exists + // and renders an empty string, and hooks that are not implemented. return FALSE; } $hook = $hook_found; @@ -228,7 +228,7 @@ public function render($hook, array $variables) { // Invoke hook_theme_suggestions_HOOK(). $suggestions = $this->moduleHandler->invokeAll('theme_suggestions_' . $base_theme_hook, [$variables]); - // Prioritize suggestions from hook_theme_suggestion_HOOK implementations + // Prioritize suggestions from hook_theme_suggestions_HOOK() implementations // above other suggestions. $suggestions = array_merge($suggestions, array_reverse($theme_hooks));