class PhpSerialize in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Serialization/PhpSerialize.php \Drupal\Component\Serialization\PhpSerialize
Default serialization for serialized PHP.
Hierarchy
- class \Drupal\Component\Serialization\PhpSerialize implements SerializationInterface
Expanded class hierarchy of PhpSerialize
1 file declares its use of PhpSerialize
- GarbageCollectionTest.php in core/
modules/ system/ src/ Tests/ KeyValueStore/ GarbageCollectionTest.php - Contains \Drupal\system\Tests\KeyValueStore\GarbageCollectionTest.
1 string reference to 'PhpSerialize'
- core.services.yml in core/
core.services.yml - core/core.services.yml
1 service uses PhpSerialize
File
- core/
lib/ Drupal/ Component/ Serialization/ PhpSerialize.php, line 13 - Contains \Drupal\Component\Serialization\PhpSerialize.
Namespace
Drupal\Component\SerializationView source
class PhpSerialize implements SerializationInterface {
/**
* {@inheritdoc}
*/
public static function encode($data) {
return serialize($data);
}
/**
* {@inheritdoc}
*/
public static function decode($raw) {
return unserialize($raw);
}
/**
* {@inheritdoc}
*/
public static function getFileExtension() {
return 'serialized';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PhpSerialize:: |
public static | function |
Decodes data from the serialization format. Overrides SerializationInterface:: |
|
PhpSerialize:: |
public static | function |
Encodes data into the serialization format. Overrides SerializationInterface:: |
|
PhpSerialize:: |
public static | function |
Gets the file extension for this serialization format. Overrides SerializationInterface:: |