function UnserializableRequest::__serialize

Same name in other branches
  1. 10 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()

Return value

array

File

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

Class

UnserializableRequest
A class for testing.

Namespace

Drupal\Tests\Core\TempStore

Code

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

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