RegisterSerializationClassesCompilerPass::OVERRIDDEN_SERVICE_ENCODER_TAG

Same name and namespace in other branches
  1. 8.9.x core/modules/jsonapi/src/DependencyInjection/Compiler/RegisterSerializationClassesCompilerPass.php \Drupal\jsonapi\DependencyInjection\Compiler\RegisterSerializationClassesCompilerPass::OVERRIDDEN_SERVICE_ENCODER_TAG
  2. 10 core/modules/jsonapi/src/DependencyInjection/Compiler/RegisterSerializationClassesCompilerPass.php \Drupal\jsonapi\DependencyInjection\Compiler\RegisterSerializationClassesCompilerPass::OVERRIDDEN_SERVICE_ENCODER_TAG
  3. 11.x core/modules/jsonapi/src/DependencyInjection/Compiler/RegisterSerializationClassesCompilerPass.php \Drupal\jsonapi\DependencyInjection\Compiler\RegisterSerializationClassesCompilerPass::OVERRIDDEN_SERVICE_ENCODER_TAG

The service tag that only JSON:API encoders should use.

@const string

File

core/modules/jsonapi/src/DependencyInjection/Compiler/RegisterSerializationClassesCompilerPass.php, line 44

Class

RegisterSerializationClassesCompilerPass
Adds services tagged JSON:API-only normalizers to the Serializer.

Namespace

Drupal\jsonapi\DependencyInjection\Compiler

Code

const OVERRIDDEN_SERVICE_ENCODER_TAG = 'jsonapi_encoder';

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