function Tasks::checkJsonSupport

Checks the database json support.

File

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

Class

Tasks
Database installer structure.

Namespace

Drupal\Core\Database\Install

Code

protected function checkJsonSupport() {
  if ($this->getConnection()
    ->hasJson()) {
    $this->pass($this->t('Database connection supports the JSON type.'));
  }
  else {
    $this->fail($this->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.