class Serializer

Same name in this branch
  1. 11.x core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer
  2. 11.x core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer
Same name in other branches
  1. 9 core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer
  2. 9 core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer
  3. 8.9.x core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer
  4. 8.9.x core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer
  5. 10 core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer
  6. 10 core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer

Serializer with JSON Schema generation convenience methods.

Hierarchy

Expanded class hierarchy of Serializer

30 string references to 'Serializer'
AuthenticationProviderPassTest::testEncoders in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/AuthenticationProviderPassTest.php
@covers ::process
CollectRoutesTest::setUp in core/modules/rest/tests/src/Unit/CollectRoutesTest.php
EndOfTransactionQueriesTest::register in core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php
Registers test-specific services.
EntitySerializationTest::setUp in core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php
FieldItemSerializationTest::setUp in core/modules/serialization/tests/src/Kernel/FieldItemSerializationTest.php

... See full list

1 service uses Serializer
serializer in core/modules/serialization/serialization.services.yml
Drupal\serialization\Serializer\Serializer

File

core/modules/serialization/src/Serializer/Serializer.php, line 12

Namespace

Drupal\serialization\Serializer
View source
class Serializer extends SymfonySerializer implements JsonSchemaProviderSerializerInterface {
    use JsonSchemaProviderSerializerTrait;

}

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