diff --git a/core/lib/Drupal/Core/Extension/UpdateModuleHandler.php b/core/lib/Drupal/Core/Extension/UpdateModuleHandler.php index 9b3c0ea..595bc0f 100644 --- a/core/lib/Drupal/Core/Extension/UpdateModuleHandler.php +++ b/core/lib/Drupal/Core/Extension/UpdateModuleHandler.php @@ -30,20 +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': - return array('system'); // Forms do not render without the basic elements in // drupal_common_theme() called from system_theme(). case 'theme': + return array('system'); + // This is called during rebuild to find testing themes. case 'system_theme_info': return array(); + // 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"); }