function 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.