You are here

public function CachedContainerBuilder::isCached in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/DependencyInjection/CachedContainerBuilder.php \Drupal\service_container\DependencyInjection\CachedContainerBuilder::isCached()

Determines if the container is cached.

Return value

bool Returns TRUE if the container definition is cached, FALSE otherwise.

File

src/DependencyInjection/CachedContainerBuilder.php, line 75
Contains \Drupal\service_container\DependencyInjection\CachedContainerBuilder

Class

CachedContainerBuilder
CachedContainerBuilder retrieves the container definition from cache or builds it.

Namespace

Drupal\service_container\DependencyInjection

Code

public function isCached() {
  $definition = $this
    ->getCache();
  return (bool) $definition;
}