function Cache::getBins
Gets all cache bin services.
Return value
\Drupal\Core\Cache\CacheBackendInterface[] An array of cache backend objects keyed by cache bins.
5 calls to Cache::getBins()
- ConfigTranslationDeleteForm::submitForm in core/
modules/ config_translation/ src/ Form/ ConfigTranslationDeleteForm.php - Form submission handler.
- drupal_flush_all_caches in core/
includes/ common.inc - Rebuilds the container, flushes all persistent caches, resets all variables, and rebuilds all data structures.
- ModuleInstaller::uninstall in core/
lib/ Drupal/ Core/ Extension/ ModuleInstaller.php - Uninstalls a given list of modules.
- RefreshVariablesTrait::refreshVariables in core/
lib/ Drupal/ Core/ Test/ RefreshVariablesTrait.php - Refreshes in-memory configuration and state information.
- SystemHooks::cron in core/
modules/ system/ src/ Hook/ SystemHooks.php - Implements hook_cron().
File
-
core/
lib/ Drupal/ Core/ Cache/ Cache.php, line 119
Class
- Cache
- Helper methods for cache.
Namespace
Drupal\Core\CacheCode
public static function getBins() {
$bins = [];
$container = \Drupal::getContainer();
foreach ($container->getParameter('cache_bins') as $service_id => $bin) {
$bins[$bin] = $container->get($service_id);
}
return $bins;
}