You are here

constant JSONAPI_FILTER_AMONG_PUBLISHED in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/jsonapi.module \JSONAPI_FILTER_AMONG_PUBLISHED
  2. 10 core/modules/jsonapi/jsonapi.module \JSONAPI_FILTER_AMONG_PUBLISHED

Array key for denoting type-based published-only filtering access.

Array key for denoting access to filter among all published entities of a given type, regardless of their owner.

This is used when an entity type has a "published" entity key and there's a query condition for the value of that equaling 1.

See also

hook_jsonapi_entity_filter_access()

hook_jsonapi_ENTITY_TYPE_filter_access()

File

core/modules/jsonapi/jsonapi.module, line 39
Module implementation file.

Code

const JSONAPI_FILTER_AMONG_PUBLISHED = 'filter_among_published';