You are here

protected function TypePluginManager::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/TypePluginManager.php, line 85

Class

TypePluginManager

Namespace

Drupal\graphql\Plugin

Code

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