Tasks
class Tasks extends Tasks (View source)
Specifies installation tasks for SQLite databases.
Properties
| protected | $pdoDriver | {@inheritdoc} | |
| protected array | $tasks | Structure that describes each task to run. |
from Tasks |
| protected array | $results | Results from tasks. |
from Tasks |
Methods
Return the human-readable name of the driver.
Return the minimum required version of the engine.
Checks engine version requirements for the status report.
Check if we can connect to the database.
Run SQL tests to ensure the database can execute commands with the current user.
Return driver specific configuration options.
Details
in
Tasks at line 85
protected
hasPdoDriver()
Ensure the PDO driver is supported by the version of PHP in use.
in
Tasks at line 92
protected
fail($message)
Assert test as failed.
in
Tasks at line 99
protected
pass($message)
Assert test as a pass.
in
Tasks at line 106
installable()
Check whether Drupal is installable on the database.
name()
Return the human-readable name of the driver.
A
minimumVersion()
Return the minimum required version of the engine.
in
Tasks at line 132
array
runTasks()
Run database tasks and tests to see if Drupal can run on the database.
in
Tasks at line 161
final TranslatableMarkup[]
engineVersionRequirementsCheck()
Checks engine version requirements for the status report.
This method is called during runtime and update requirements checks.
protected
connect()
Check if we can connect to the database.
in
Tasks at line 187
protected
runTestQuery($query, $pass, $fail, $fatal = FALSE)
Run SQL tests to ensure the database can execute commands with the current user.
in
Tasks at line 201
protected
checkEngineVersion()
Check the engine version.
The
getFormOptions(array $database)
Return driver specific configuration options.
in
Tasks at line 312
An
validateDatabaseSettings($database)
Validates driver specific configuration settings.
Checks to ensure correct basic database settings and that a proper connection to the database can be established.