You are here

public static function JsonApiSpec::getReservedQueryParameters in JSON:API 8.2

Same name and namespace in other branches
  1. 8 src/JsonApiSpec.php \Drupal\jsonapi\JsonApiSpec::getReservedQueryParameters()

Gets the reserved (official) JSON:API query parameters.

Return value

string[] Gets the query parameters reserved by the specification.

1 call to JsonApiSpec::getReservedQueryParameters()
JsonApiRequestValidator::validateQueryParams in src/EventSubscriber/JsonApiRequestValidator.php
Validates custom (implementation-specific) query parameter names.

File

src/JsonApiSpec.php, line 115

Class

JsonApiSpec
Defines constants used for compliance with the JSON:API specification.

Namespace

Drupal\jsonapi

Code

public static function getReservedQueryParameters() {
  return explode('|', static::RESERVED_QUERY_PARAMETERS);
}