JsonApiSpec::MEMBER_NAME_GLOBALLY_ALLOWED_CHARACTER_CLASS

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

Member name: globally allowed characters.

U+0080 and above (non-ASCII Unicode characters) are allowed, but are not URL-safe. It is RECOMMENDED to not use them.

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 41

Class

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

Namespace

Drupal\jsonapi

Code

const MEMBER_NAME_GLOBALLY_ALLOWED_CHARACTER_CLASS = '[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.