You are here

protected function Tasks::checkJsonSupport in Drupal 10

Checks the database json support.

File

core/lib/Drupal/Core/Database/Install/Tasks.php, line 398

Class

Tasks
Database installer structure.

Namespace

Drupal\Core\Database\Install

Code

protected function checkJsonSupport() {
  if ($this
    ->getConnection()
    ->hasJson()) {
    $this
      ->pass(t('Database connection supports the JSON type.'));
  }
  else {
    $this
      ->fail(t('<a href="https://www.drupal.org/docs/system-requirements">Database connection does not support JSON.</a>'));
  }
}