You are here

public function SchemaPluginBase::getCacheMaxAge in GraphQL 8.3

The maximum age for which this object may be cached.

Return value

int The maximum time in seconds that this object may be cached.

Overrides CacheableDependencyInterface::getCacheMaxAge

File

src/Plugin/GraphQL/Schemas/SchemaPluginBase.php, line 570

Class

SchemaPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Schemas

Code

public function getCacheMaxAge() {
  return $this->pluginDefinition['schema_cache_max_age'];
}