constant JSONAPI_FILTER_AMONG_PUBLISHED in Drupal 10
Same name and namespace in other branches
- 8 core/modules/jsonapi/jsonapi.module \JSONAPI_FILTER_AMONG_PUBLISHED
- 9 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()
8 uses of JSONAPI_FILTER_AMONG_PUBLISHED
- hook_jsonapi_ENTITY_TYPE_filter_access in core/
modules/ jsonapi/ jsonapi.api.php - Controls access to filtering by entity data via JSON:API.
- jsonapi_jsonapi_block_content_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'block_content'.
- jsonapi_jsonapi_comment_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'comment'.
- jsonapi_jsonapi_media_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'media'.
- jsonapi_jsonapi_node_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'node'.
File
- core/
modules/ jsonapi/ jsonapi.module, line 39 - Module implementation file.
Code
const JSONAPI_FILTER_AMONG_PUBLISHED = 'filter_among_published';