class Serializer
Same name in this branch
- 11.x core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer
- 11.x core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer
Same name in other branches
- 9 core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer
- 9 core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer
- 8.9.x core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer
- 8.9.x core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer
- 10 core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer
- 10 core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer
Serializer with JSON Schema generation convenience methods.
Hierarchy
- class \Drupal\serialization\Serializer\Serializer extends \Symfony\Component\Serializer\Serializer implements \Drupal\serialization\Serializer\JsonSchemaProviderSerializerInterface uses \Drupal\serialization\Serializer\JsonSchemaProviderSerializerTrait
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
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\SerializerView 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.