public function PersistedQueryPluginBase::getWeight in GraphQL 8.4
Returns the weight of this plugin instance.
Return value
int The default weight for the given stage.
Overrides PersistedQueryPluginInterface::getWeight
File
- src/
PersistedQuery/ PersistedQueryPluginBase.php, line 53
Class
- PersistedQueryPluginBase
- Base class persisted query plugins that represent a GraphQL persisted query.
Namespace
Drupal\graphql\PersistedQueryCode
public function getWeight() {
if (isset($this->configuration['weight'])) {
return $this->configuration['weight'];
}
return 0;
}