public function BackendChain::isEmpty

Implements Drupal\Core\Cache\CacheBackendInterface::isEmpty().

Overrides CacheBackendInterface::isEmpty

File

drupal/core/lib/Drupal/Core/Cache/BackendChain.php, line 225
Definition of Drupal\Core\Cache\BackendChain.

Class

BackendChain
Defines a chained cache implementation for combining multiple cache backends.

Namespace

Drupal\Core\Cache

Code

public function isEmpty() {
  foreach ($this->backends as $backend) {
    if (!$backend
      ->isEmpty()) {
      return FALSE;
    }
  }
  return TRUE;
}