JsonApiSpec::MEMBER_NAME_INNER_ALLOWED_CHARACTERS

Same name in other branches
  1. 9 core/modules/jsonapi/src/JsonApiSpec.php \Drupal\jsonapi\JsonApiSpec::MEMBER_NAME_INNER_ALLOWED_CHARACTERS
  2. 8.9.x core/modules/jsonapi/src/JsonApiSpec.php \Drupal\jsonapi\JsonApiSpec::MEMBER_NAME_INNER_ALLOWED_CHARACTERS
  3. 10 core/modules/jsonapi/src/JsonApiSpec.php \Drupal\jsonapi\JsonApiSpec::MEMBER_NAME_INNER_ALLOWED_CHARACTERS

Member name: allowed characters except as the first or last character.

Space (U+0020) is allowed, but is not URL-safe. It is RECOMMENDED to not use it.

A character class, for use in regular expressions.

See also

http://jsonapi.org/format/#document-member-names-allowed-characters

http://php.net/manual/en/regexp.reference.character-classes.php

File

core/modules/jsonapi/src/JsonApiSpec.php, line 54

Class

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

Namespace

Drupal\jsonapi

Code

const MEMBER_NAME_INNER_ALLOWED_CHARACTERS = "[a-zA-Z0-9\\x{80}-\\x{10FFFF}\\-_ ]";

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.