diff --git a/core/lib/Drupal/Core/Theme/ThemeManager.php b/core/lib/Drupal/Core/Theme/ThemeManager.php index eface70..fda8073 100644 --- a/core/lib/Drupal/Core/Theme/ThemeManager.php +++ b/core/lib/Drupal/Core/Theme/ThemeManager.php @@ -166,11 +166,10 @@ public function render($hook, array $variables) { } } if (!$hook_found) { - // Do not create a watchdog warning for arrays of theme hooks because - // every hook in the array is allowed to be unimplemented. For example, - // form arrays can provide an array of suggested theme hooks for theming a - // specific form. Therefore, we only log missing theme hook - // implementations for single (string) hooks. + // Do not log a warning for arrays of theme hooks with no implemented + // hooks. It's valid to pass an array of theme hooks where none of the + // hooks are implemented. We only log missing theme hook implementations + // for single (string) hooks. if (is_string($hook)) { \Drupal::logger('theme')->warning('Theme hook %hook not found.', ['%hook' => $hook]); }