Change record status: 
Project: 
Introduced in branch: 
11.3.x
Introduced in version: 
11.3.0
Description: 

The .module file of jsonapi only contains constants. By changing to class constants, we can actually remove the .module file in a future update. This requires changing any usage of the constants below to their class equivalent.

  • JSONAPI_FILTER_AMONG_ALL has been deprecated. Use \Drupal\jsonapi\JsonApiFilter::AMONG_ALL instead.
  • JSONAPI_FILTER_AMONG_PUBLISHED has been deprecated. Use \Drupal\jsonapi\JsonApiFilter::AMONG_PUBLISHED instead.
  • JSONAPI_FILTER_AMONG_ENABLED has been deprecated. Use \Drupal\jsonapi\JsonApiFilter::AMONG_ENABLED instead.
  • JSONAPI_FILTER_AMONG_OWN has been deprecated. Use \Drupal\jsonapi\JsonApiFilter::AMONG_OWN instead.
Impacts: 
Module developers
Site templates, recipes and distribution developers