public function InstallBackend::isEmpty

Overrides Drupal\Core\Cache\DatabaseBackend::isEmpty().

Overrides DatabaseBackend::isEmpty

File

drupal/core/lib/Drupal/Core/Cache/InstallBackend.php, line 178
Definition of Drupal\Core\Cache\InstallBackend.

Class

InstallBackend
Defines a stub cache implementation to be used during installation.

Namespace

Drupal\Core\Cache

Code

public function isEmpty() {
  try {
    if (class_exists('Drupal\\Core\\Database\\Database')) {
      return parent::isEmpty();
    }
  } catch (Exception $e) {
  }
  return TRUE;
}