ControllerBase::cache

protected function ControllerBase::cache

protected ControllerBase::cache($bin = 'default')

Returns the requested cache bin.

Parameters

string $bin: (optional) The cache bin for which the cache object should be returned, defaults to 'default'.

Return value

\Drupal\Core\Cache\CacheBackendInterface The cache object associated with the specified bin.

File

core/lib/Drupal/Core/Controller/ControllerBas