Search for __sleep

  1. Search 7.x for __sleep
  2. Search 8.9.x for __sleep
  3. Search 10.3.x for __sleep
  4. Search 11.x for __sleep
  5. Other projects
Title Object type File name Summary
BaseFieldDefinition::__sleep function core/lib/Drupal/Core/Field/BaseFieldDefinition.php
BaseFieldOverride::__sleep function core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php Implements the magic __sleep() method.
BrowserTestBase::__sleep function core/tests/Drupal/Tests/BrowserTestBase.php Prevents serializing any properties.
ComplexDataDefinitionBase::__sleep function core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php
ConfigEntityBase::__sleep function core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
ConfigEntityBaseUnitTest::testSleepWithPluginCollections function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @covers ::__sleep
Connection::__sleep function core/lib/Drupal/Core/Database/Connection.php Prevents the database connection from being serialized.
Container::__sleep function core/lib/Drupal/Core/DependencyInjection/Container.php
ContainerBuilder::__sleep function core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php
ContentEntityBase::__sleep function core/lib/Drupal/Core/Entity/ContentEntityBase.php
DataDefinition::__sleep function core/lib/Drupal/Core/TypedData/DataDefinition.php
Dependency::__sleep function core/lib/Drupal/Core/Extension/Dependency.php Prevents unnecessary serialization of constraint objects.
DependencySerializationTrait::__sleep function core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php
EntityBase::__sleep function core/lib/Drupal/Core/Entity/EntityBase.php
EntityDisplayBase::__sleep function core/lib/Drupal/Core/Entity/EntityDisplayBase.php
Extension::__sleep function core/lib/Drupal/Core/Extension/Extension.php Magic method implementation to serialize the extension object.
FieldConfigBase::__sleep function core/lib/Drupal/Core/Field/FieldConfigBase.php Implements the magic __sleep() method.
FieldStorageConfig::__sleep function core/modules/field/src/Entity/FieldStorageConfig.php Implements the magic __sleep() method.
FilterAPITest::testSleep function core/modules/filter/tests/src/Kernel/FilterAPITest.php Tests that format entities are serialized without their plugin collection.
ForumManager::__sleep function core/modules/forum/src/ForumManager.php
KernelTestBase::__sleep function core/tests/Drupal/KernelTests/KernelTestBase.php Prevents serializing any properties.
MemoryBackend::__sleep function core/lib/Drupal/Core/Cache/MemoryBackend.php Prevents data stored in memory backends from being serialized.
PluralTranslatableMarkup::__sleep function core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php
Query::__sleep function core/lib/Drupal/Core/Database/Query/Query.php Implements the magic __sleep function to disconnect from the database.
Settings::__sleep function core/lib/Drupal/Core/Site/Settings.php Prevents settings from being serialized.
SqlBase::__sleep function core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
TermStorage::__sleep function core/modules/taxonomy/src/TermStorage.php
TranslatableMarkup::__sleep function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Magic __sleep() method to avoid serializing the string translator.
View::__sleep function core/modules/views/src/Entity/View.php
ViewExecutable::__sleep function core/modules/views/src/ViewExecutable.php Magic method implementation to serialize the view executable.

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