function PhpSerialize::decode

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Serialization/PhpSerialize.php \Drupal\Component\Serialization\PhpSerialize::decode()
  2. 10 core/lib/Drupal/Component/Serialization/PhpSerialize.php \Drupal\Component\Serialization\PhpSerialize::decode()
  3. 11.x core/lib/Drupal/Component/Serialization/PhpSerialize.php \Drupal\Component\Serialization\PhpSerialize::decode()

Overrides SerializationInterface::decode

File

core/lib/Drupal/Component/Serialization/PhpSerialize.php, line 20

Class

PhpSerialize
Default serialization for serialized PHP.

Namespace

Drupal\Component\Serialization

Code

public static function decode($raw) {
    return unserialize($raw);
}

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