protected function InstallablePluginManager::setCachedDefinitions in Markdown 8.2
Sets a cache of plugin definitions for the decorated discovery class.
Parameters
array $definitions: List of definitions to store in cache.
bool $runtime: Flag indicating whether this is setting runtime definitions.
Overrides DefaultPluginManager::setCachedDefinitions
1 call to InstallablePluginManager::setCachedDefinitions()
- InstallablePluginManager::getRuntimeDefinitions in src/
PluginManager/ InstallablePluginManager.php - Retrieves the runtime definitions.
File
- src/
PluginManager/ InstallablePluginManager.php, line 663
Class
- InstallablePluginManager
- Installable Plugin Manager.
Namespace
Drupal\markdown\PluginManagerCode
protected function setCachedDefinitions($definitions, $runtime = FALSE) {
// phpcs:ignore
$cacheKey = $this
->getCacheKey($runtime);
$this
->cacheSet($cacheKey, $definitions, Cache::PERMANENT, [
$cacheKey,
]);
if ($runtime) {
static::$runtimeDefinitions[static::class] = $definitions;
}
else {
$this->definitions = $definitions;
}
}