You are here

public static function QueryMap::exists in GraphQL 8.3

Checks if the query map with version ID exists.

Parameters

int $version: The GraphQL query map version ID.

Return value

bool TRUE if a query map with the given ID exists, FALSE otherwise.

Overrides QueryMapInterface::exists

1 call to QueryMap::exists()
EntityQueryMapImportForm::validateForm in src/Form/EntityQueryMapImportForm.php
Form validation handler.

File

src/Entity/QueryMap.php, line 73

Class

QueryMap
Plugin annotation @ConfigEntityType( id = "graphql_query_map", label = @Translation("Query map"), handlers = { "list_builder" = "Drupal\graphql\Controller\QueryMapListBuilder", "form" = { "import" =…

Namespace

Drupal\graphql\Entity

Code

public static function exists($id) {
  return (bool) static::load($id);
}