You are here

protected function MutationPluginManager::setCachedDefinitions in GraphQL 8.3

Sets a cache of plugin definitions for the decorated discovery class.

Parameters

array $definitions: List of definitions to store in cache.

Overrides DefaultPluginManager::setCachedDefinitions

File

src/Plugin/MutationPluginManager.php, line 82

Class

MutationPluginManager

Namespace

Drupal\graphql\Plugin

Code

protected function setCachedDefinitions($definitions) {
  $this->definitions = $definitions;
  $this
    ->cacheSet($this->cacheKey, $definitions, $this
    ->getCacheMaxAge(), $this
    ->getCacheTags());
}