Skip to content
Snippets Groups Projects
Commit fb26581f authored by Lucas Hedding's avatar Lucas Hedding Committed by Lucas Hedding
Browse files

Issue #3050876 by heddn, mbaynton: PSA UX follow-up: blocking update.php

parent 6412ced9
No related branches found
No related tags found
No related merge requests found
...@@ -8,9 +8,13 @@ ...@@ -8,9 +8,13 @@
use Drupal\Core\StringTranslation\PluralTranslatableMarkup; use Drupal\Core\StringTranslation\PluralTranslatableMarkup;
/** /**
* Requirements checks for automatic updates. * Implements hook_requirements().
*/ */
function automatic_updates_requirements() { function automatic_updates_requirements($phase) {
if ($phase !== 'runtime') {
return;
}
$requirements = []; $requirements = [];
if (!\Drupal::config('automatic_updates.settings')->get('enable_psa')) { if (!\Drupal::config('automatic_updates.settings')->get('enable_psa')) {
return $requirements; return $requirements;
......
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