Search for serialize

  1. Search 7.x for serialize
  2. Search 9.5.x for serialize
  3. Search 10.3.x for serialize
  4. Search 11.x for serialize
  5. Other projects
Title Object type File name Summary
Attribute::jsonSerialize function core/lib/Drupal/Core/Template/Attribute.php Returns a representation of the object for use in JSON serialization.
AuditResult::jsonSerialize function core/modules/migrate/src/Audit/AuditResult.php Returns the reasons the migration passed or failed, for JSON serialization.
CompiledRoute::serialize function core/lib/Drupal/Core/Routing/CompiledRoute.php
CompiledRoute::unserialize function core/lib/Drupal/Core/Routing/CompiledRoute.php
Connection::serialize function core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
ContainerBuilderTest::testSerialize function core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php Tests serialization.
ContainerTest::testGetForSerializedServiceDefinition function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for a serialized definition works properly.
ContainerTest::testSerialize function core/tests/Drupal/Tests/Core/DependencyInjection/ContainerTest.php Tests serialization.
ContentEntityCloneTest::testFieldValuesAfterSerialize function core/tests/Drupal/KernelTests/Core/Entity/ContentEntityCloneTest.php Tests the field values after serializing an entity and its clone.
ContentEntityNormalizerTest::$serializer property core/modules/serialization/tests/src/Unit/Normalizer/ContentEntityNormalizerTest.php The mock serializer.
ContextTypedDataTest::testSerialize function core/tests/Drupal/KernelTests/Core/Plugin/ContextTypedDataTest.php Tests that contexts can be serialized.
DatabaseStorage::$serializer property core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php The serialization class to use.
DefaultExceptionSubscriber::$serializer property core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php The serializer.
DefaultExceptionSubscriber::$serializerFormats property core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php The available serialization formats.
DenormalizeTest::testDenormalizeEmptyCustomSerializedField function core/modules/hal/tests/src/Kernel/DenormalizeTest.php Tests normalizing/denormalizing empty custom serialized fields.
DenormalizeTest::testDenormalizeInvalidCustomSerializedField function core/modules/hal/tests/src/Kernel/DenormalizeTest.php Tests normalizing/denormalizing invalid custom serialized fields.
DenormalizeTest::testDenormalizeSerializedItem function core/modules/hal/tests/src/Kernel/DenormalizeTest.php Tests normalizing/denormalizing serialized columns.
DenormalizeTest::testDenormalizeValidCustomSerializedField function core/modules/hal/tests/src/Kernel/DenormalizeTest.php Tests normalizing/denormalizing valid custom serialized fields.
DeprecatedArray::serialize function core/lib/Drupal/Component/Utility/DeprecatedArray.php
DeprecatedArray::unserialize function core/lib/Drupal/Component/Utility/DeprecatedArray.php
EntityNormalizerTest::$serializer property core/modules/serialization/tests/src/Unit/Normalizer/EntityNormalizerTest.php The mock serializer.
EntityReferenceFieldItemNormalizerTest::$serializer property core/modules/serialization/tests/src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php The mock serializer.
EntityResource::$serializer property core/modules/jsonapi/src/Controller/EntityResource.php The JSON:API serializer.
EntityResource::deserialize function core/modules/jsonapi/src/Controller/EntityResource.php Deserializes a request body, if any.
EntitySerializationTest::$serializer property core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php The serializer service.
EntitySerializationTest::testDenormalizeCustomSerializedItem function core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php Tests normalizing/denormalizing custom serialized columns.
EntitySerializationTest::testDenormalizeEmptyCustomSerializedField function core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php Tests normalizing/denormalizing empty custom serialized fields.
EntitySerializationTest::testDenormalizeInvalidCustomSerializedField function core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php Tests normalizing/denormalizing invalid custom serialized fields.
EntitySerializationTest::testDenormalizeSerializedItem function core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php Tests denormalizing serialized columns.
EntitySerializationTest::testDenormalizeValidCustomSerializedField function core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php Tests normalizing/denormalizing valid custom serialized fields.
EntitySerializationTest::testSerialize function core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php Test registered Serializer's entity serialization for core's formats.
EntitySerializedField class core/modules/system/tests/modules/entity_test/src/Entity/EntitySerializedField.php Defines a test class for testing fields with a serialized column.
EntitySerializedField.php file core/modules/system/tests/modules/entity_test/src/Entity/EntitySerializedField.php
EntitySerializedField::baseFieldDefinitions function core/modules/system/tests/modules/entity_test/src/Entity/EntitySerializedField.php
FieldItemSerializationTest::$serializer property core/modules/serialization/tests/src/Kernel/FieldItemSerializationTest.php The serializer service.
FieldLinkTest::testCanonicalizeUriSerialized function core/modules/link/tests/src/Unit/Plugin/migrate/process/FieldLinkTest.php Test the attributes that are deeply serialized are discarded.
FormattableMarkup::jsonSerialize function core/lib/Drupal/Component/Render/FormattableMarkup.php Returns a representation of the object for use in JSON serialization.
FrontMatter::$serializer property core/modules/help_topics/src/FrontMatter.php A serializer class.
GeneratedLink::jsonSerialize function core/lib/Drupal/Core/GeneratedLink.php
Html::serialize function core/lib/Drupal/Component/Utility/Html.php Converts the body of a \DOMDocument back to an HTML snippet.
HtmlEscapedText::jsonSerialize function core/lib/Drupal/Component/Render/HtmlEscapedText.php
HtmlTest::testSerialize function core/tests/Drupal/Tests/Component/Utility/HtmlTest.php Tests Html::serialize().
jsonapi.serializer service core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Serializer\Serializer
KeyValueDatabaseExpirableFactory::$serializer property core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php The serialization class to use.
KeyValueDatabaseFactory::$serializer property core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php The serialization class to use.
LinkItemSerializationTest::$serializer property core/modules/link/tests/src/Kernel/LinkItemSerializationTest.php The serializer service.
LinkItemTest::testSerializedOptions function core/modules/link/tests/src/Kernel/LinkItemTest.php Tests the deprecated behavior of LinkItem::setValue().
MapDataNormalizerTest::$serializer property core/modules/serialization/tests/src/Kernel/MapDataNormalizerTest.php The serializer service.
MarkupTrait::jsonSerialize function core/lib/Drupal/Component/Render/MarkupTrait.php Returns a representation of the object for use in JSON serialization.
MenuTreeParameters::serialize function core/lib/Drupal/Core/Menu/MenuTreeParameters.php

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