function SystemManager::checkRequirements

Same name in other branches
  1. 9 core/modules/system/src/SystemManager.php \Drupal\system\SystemManager::checkRequirements()
  2. 8.9.x core/modules/system/src/SystemManager.php \Drupal\system\SystemManager::checkRequirements()
  3. 10 core/modules/system/src/SystemManager.php \Drupal\system\SystemManager::checkRequirements()

Checks for requirement severity.

Return value

bool Returns the status of the system.

File

core/modules/system/src/SystemManager.php, line 92

Class

SystemManager
System Manager Service.

Namespace

Drupal\system

Code

public function checkRequirements() {
    $requirements = $this->listRequirements();
    return $this->getMaxSeverity($requirements) == static::REQUIREMENT_ERROR;
}

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