protected function Tasks::checkRequirements in Drupal driver for SQL Server and SQL Azure 8.2
Check for general requirements
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Install/ Tasks.php, line 148 - Definition of Drupal\Driver\Database\sqlsrv\Tasks
Class
- Tasks
- Specifies installation tasks for PostgreSQL databases.
Namespace
Drupal\Driver\Database\sqlsrv\InstallCode
protected function checkRequirements() {
try {
$errors = static::InstallRequirements();
// TODO: Find a better way to print this information...
if (!empty($errors)) {
foreach ($errors as $error) {
if ($error['severity'] == REQUIREMENT_ERROR || $error['severity'] == REQUIREMENT_WARNING) {
$this
->fail($error['description']);
}
}
}
} catch (\Exception $e) {
$this
->fail(t('Could not check requirements:') . $e
->getMessage());
}
}