function ModuleUpdateRequirementsHooks::updateRequirements

Implements hook_update_requirements().

File

core/modules/system/tests/modules/module_update_requirements/src/Hook/ModuleUpdateRequirementsHooks.php, line 20

Class

ModuleUpdateRequirementsHooks
Hook implementations for module_update_requirements.

Namespace

Drupal\module_update_requirements\Hook

Code

public function updateRequirements() : array {
    return [
        'test.update.error' => [
            'title' => $this->t('UpdateError'),
            'value' => $this->t('None'),
            'description' => $this->t('Update Error.'),
            'severity' => REQUIREMENT_ERROR,
        ],
        'test.update.error.alter' => [
            'title' => $this->t('UpdateError'),
            'value' => $this->t('None'),
            'description' => $this->t('Update Error.'),
            'severity' => REQUIREMENT_ERROR,
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.