You are here

public function CacheCollectorInterface::has in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::has()
  2. 9 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);