Skip to content
Snippets Groups Projects
Commit c4edd3bd authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2168101 by xjm: UpdateModuleHandler does not follow coding standards...

Issue #2168101 by xjm: UpdateModuleHandler does not follow coding standards for switch statements and is hard to read.
parent 9becaf1b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -35,6 +35,7 @@ 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':
......@@ -44,6 +45,7 @@ public function getImplementations($hook) {
// 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':
// Those are needed by user_access() to check access on update.php.
......@@ -51,10 +53,12 @@ public function getImplementations($hook) {
case 'entity_load':
case 'user_role_load':
return array();
// t() in system_stream_wrappers() 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");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment