You are here

public function PersistedQueryPluginBase::setWeight in GraphQL 8.4

Sets the weight for this plugin instance.

Parameters

int $weight: The weight.

Overrides PersistedQueryPluginInterface::setWeight

File

src/PersistedQuery/PersistedQueryPluginBase.php, line 63

Class

PersistedQueryPluginBase
Base class persisted query plugins that represent a GraphQL persisted query.

Namespace

Drupal\graphql\PersistedQuery

Code

public function setWeight($weight) : void {
  $this->configuration['weight'] = $weight;
}