function CacheCollectorInterface::has
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::has()
- 8.9.x core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::has()
- 10 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.
2 methods override CacheCollectorInterface::has()
- CacheCollector::has in core/
lib/ Drupal/ Core/ Cache/ CacheCollector.php - Returns whether data exists for this key.
- MenuActiveTrail::has in core/
lib/ Drupal/ Core/ ProxyClass/ Menu/ MenuActiveTrail.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\CacheCode
public function has($key);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.