diff --git a/core/lib/Drupal/Core/Extension/UpdateModuleHandler.php b/core/lib/Drupal/Core/Extension/UpdateModuleHandler.php index 0ef5259..595bc0f 100644 --- a/core/lib/Drupal/Core/Extension/UpdateModuleHandler.php +++ b/core/lib/Drupal/Core/Extension/UpdateModuleHandler.php @@ -30,22 +30,24 @@ public function getImplementations($hook) { // Allow logging. case 'watchdog': return parent::getImplementations($hook); + // Forms and pages do not render without the basic elements defined in // system_element_info(). case 'element_info': // Forms do not render without the basic elements in // drupal_common_theme() called from system_theme(). case 'theme': - // user_update_8011() uses public:// to create the image style directory. - case 'stream_wrappers': return array('system'); + // This is called during rebuild to find testing themes. case 'system_theme_info': return array(); - // t() in system_stream_wrappers() needs this. Other schema calls aren't - // supported. + + // t() (called indirectly by \Drupal\Core\StreamWrapper\PublicStream) + // needs this. Other schema calls aren't supported. case 'schema': return array('locale'); + default: throw new \LogicException("Invoking hooks $hook is not supported during updates"); }