You are here

public function DataProducerProxy::cached in GraphQL 8.4

Set the cached flag.

Parameters

bool $cached:

Return value

$this

File

src/Plugin/GraphQL/DataProducer/DataProducerProxy.php, line 146

Class

DataProducerProxy
A proxy class that lazy resolves data producers and has a result cache.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer

Code

public function cached($cached = TRUE) {
  $this->cached = $cached;
  return $this;
}