protected ControllerBase::cache($bin = 'default')
Returns the requested cache bin.
string $bin: (optional) The cache bin for which the cache object should be returned, defaults to 'default'.
\Drupal\Core\Cache\CacheBackendInterface The cache object associated with the specified bin.
protected function cache($bin = 'default') {
return $this->container()->get('cache.' . $bin);
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Controller!ControllerBase.php/function/ControllerBase::cache/8.1.x