function UnserializableRequest::__serialize

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php \Drupal\Tests\Core\TempStore\UnserializableRequest::__serialize()
  2. 11.x core/tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php \Drupal\Tests\Core\TempStore\UnserializableRequest::__serialize()

Always throw an exception.

File

core/tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php, line 384

Class

UnserializableRequest
A class for testing.

Namespace

Drupal\Tests\Core\TempStore

Code

public function __serialize() {
    throw new \LogicException('Oops!');
}

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