Search for serialize

  1. Search 7.x for serialize
  2. Search 9.5.x for serialize
  3. Search 8.9.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
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.
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 Tests entity serialization for core's formats by a registered Serializer.
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 Tests 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/lib/Drupal/Component/FrontMatter/FrontMatter.php A serializer.
FrontMatterTest::testFrontMatterSerializerException function core/tests/Drupal/Tests/Component/FrontMatter/FrontMatterTest.php Tests when a passed serializer doesn't implement the proper interface.
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
HtmlSerializerRules class core/lib/Drupal/Component/Utility/HtmlSerializerRules.php Drupal-specific HTML5 serializer rules.
HtmlSerializerRules.php file core/lib/Drupal/Component/Utility/HtmlSerializerRules.php
HtmlSerializerRules::escape function core/lib/Drupal/Component/Utility/HtmlSerializerRules.php
HtmlTest::testSerialize function core/tests/Drupal/Tests/Component/Utility/HtmlTest.php Tests Html::serialize().
Importer::getCustomSerializedPropertyNames function core/lib/Drupal/Core/DefaultContent/Importer.php Gets the names of all properties the plugin treats as serialized data.
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.
LinkCollectionNormalizerTest::$serializer property core/modules/jsonapi/tests/src/Kernel/Normalizer/LinkCollectionNormalizerTest.php The serializer.
LinkItemSerializationTest::$serializer property core/modules/link/tests/src/Kernel/LinkItemSerializationTest.php The serializer service.
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.