Skip to content
Snippets Groups Projects
Verified Commit 5e3b8c6d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3324995 by claudiu.cristea, GaëlG, dajjen: hook_requirements_alter() is...

Issue #3324995 by claudiu.cristea, GaëlG, dajjen: hook_requirements_alter() is not invoked on update

(cherry picked from commit 64e5e002)
parent 4c461146
No related branches found
No related tags found
17 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...,!6922Issue #3412959 by quietone, smustgrave, longwave: Fix 12 'un' words,!6848Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest,!6720Revert "Issue #3358581 by pfrenssen, _tarik_, a.dmitriiev, smustgrave:...,!6560Update ClaroPreRender.php, confirming classes provided are in array format,!6528Issue #3414261 by catch: Add authenticated user umami performance tests,!6501Issue #3263668 by omkar-pd, Wim Leers, hooroomoo: Re-enable inline form errors...,!6354Draft: Issue #3380392 by phma: Updating language weight from the overview reverts label if translated,!6324Issue #3416723 by Ludo.R: Provide a "node type" views default argument,!6119Issue #3405704 by Spokje, longwave: symfony/psr-http-message-bridge major version bump,!5950Issue #3403653 by alexpott, longwave: Incorporate improvements to how contrib runs PHPStan to core,!5858Issue #3401971 by fjgarlin: Test-only job shouldn't require constant rebases...
Pipeline #61794 passed
Pipeline: drupal

#61812

    Pipeline: drupal

    #61809

      Pipeline: drupal

      #61799

        +1
        ......@@ -52,6 +52,7 @@ function update_check_requirements() {
        // Check requirements of all loaded modules.
        $requirements = \Drupal::moduleHandler()->invokeAll('requirements', ['update']);
        \Drupal::moduleHandler()->alter('requirements', $requirements);
        $requirements += update_system_schema_requirements();
        return $requirements;
        }
        ......
        ......@@ -28,7 +28,7 @@ function update_script_test_requirements($phase) {
        $requirements['update_script_test'] = [
        'title' => 'Update script test',
        'value' => 'Error',
        'description' => 'This is a requirements error provided by the update_script_test module.',
        'description' => 'This is a (buggy description fixed in update_script_test_requirements_alter()) requirements error provided by the update_script_test module.',
        'severity' => REQUIREMENT_ERROR,
        ];
        break;
        ......@@ -38,6 +38,15 @@ function update_script_test_requirements($phase) {
        return $requirements;
        }
        /**
        * Implements hook_requirements_alter().
        */
        function update_script_test_requirements_alter(array &$requirements): void {
        if (isset($requirements['update_script_test']) && $requirements['update_script_test']['severity'] === REQUIREMENT_ERROR) {
        $requirements['update_script_test']['description'] = 'This is a requirements error provided by the update_script_test module.';
        }
        }
        /**
        * Implements hook_update_last_removed().
        */
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment