interface ObjectAwareSerializationInterface

Same name in other branches
  1. 11.x core/lib/Drupal/Component/Serialization/ObjectAwareSerializationInterface.php \Drupal\Component\Serialization\ObjectAwareSerializationInterface

Ensures that a serializer is usable for serializing PHP objects.

Other Serializers that implement the SerializationInterface, for example serializers that use JSON or YAML, are suitable for different PHP types except objects. Serializers that implement the ObjectAwareSerializationInterface instead are clearly indicating that they're suitable for PHP objects, for example using the PHP string serialization format or the igbinary format.

Hierarchy

Expanded class hierarchy of ObjectAwareSerializationInterface

All classes that implement ObjectAwareSerializationInterface

2 files declare their use of ObjectAwareSerializationInterface
DatabaseBackend.php in core/lib/Drupal/Core/Cache/DatabaseBackend.php
DatabaseBackendFactory.php in core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php

File

core/lib/Drupal/Component/Serialization/ObjectAwareSerializationInterface.php, line 17

Namespace

Drupal\Component\Serialization
View source
interface ObjectAwareSerializationInterface extends SerializationInterface {

}

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