JsonApiFilter::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/src/JsonApiFilter.php, line 36

Class

JsonApiFilter
JsonApi filter options.

Namespace

Drupal\jsonapi

Code

const AMONG_PUBLISHED = 'filter_among_published';

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