function CacheCollectorInterface::has

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::has()
  2. 10 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::has()
  3. 11.x core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::has()

Returns whether data exists for this key.

Parameters

string $key: Key that identifies the data.

1 method overrides CacheCollectorInterface::has()
CacheCollector::has in core/lib/Drupal/Core/Cache/CacheCollector.php
Returns whether data exists for this key.

File

core/lib/Drupal/Core/Cache/CacheCollectorInterface.php, line 62

Class

CacheCollectorInterface
Provides a caching wrapper to be used in place of large structures.

Namespace

Drupal\Core\Cache

Code

public function has($key);

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