function Tasks::checkJsonSupport

Same name in other branches
  1. 10 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::checkJsonSupport()

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>'));
    }
}

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