Search for destruct

  1. Search 7.x for destruct
  2. Search 8.9.x for destruct
  3. Search 10.3.x for destruct
  4. Search 11.x for destruct
  5. Other projects
Title Object type File name Summary
CacheCollector::destruct function core/lib/Drupal/Core/Cache/CacheCollector.php Performs destruct operations.
Connection::__destruct function core/modules/sqlite/src/Driver/Database/sqlite/Connection.php Destructor for the SQLite connection.
Connection::__destruct function core/modules/mysql/src/Driver/Database/mysql/Connection.php Ensures that the client connection can be garbage collected.
Connection::__destruct function core/lib/Drupal/Core/Database/Connection.php Ensures that the client connection can be garbage collected.
ConnectionTest::testDestructBcLayer function core/tests/Drupal/Tests/Core/Database/ConnectionTest.php Tests Connection::__destruct().
DestructableInterface interface core/lib/Drupal/Core/DestructableInterface.php The interface for services that need explicit destruction.
DestructableInterface.php file core/lib/Drupal/Core/DestructableInterface.php
DestructableInterface::destruct function core/lib/Drupal/Core/DestructableInterface.php Performs destruct operations.
DisplayPluginCollection::__destruct function core/modules/views/src/DisplayPluginCollection.php Destructs a DisplayPluginCollection object.
DownloadTest::testNonDestructiveDownload function core/modules/migrate/tests/src/Kernel/process/DownloadTest.php Tests a download that renames the downloaded file if there's a collision.
GDToolkit::__destruct function core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php Destructs a GDToolkit object.
KernelDestructionSubscriber class core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php Destructs services that are initiated and tagged with "needs_destruction".
KernelDestructionSubscriber.php file core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php
KernelDestructionSubscriber::$services property core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php Holds an array of service ID's that will require destruction.
KernelDestructionSubscriber::getSubscribedEvents function core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php Registers the methods in this class that should be listeners.
KernelDestructionSubscriber::onKernelTerminate function core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php Invoked by the terminate kernel event.
KernelDestructionSubscriber::registerService function core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php Registers a service for destruction.
kernel_destruct_subscriber service core/core.services.yml Drupal\Core\EventSubscriber\KernelDestructionSubscriber
LibraryDiscoveryCollectorTest::testDestruct function core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php Tests the destruct method.
LocaleTranslation::destruct function core/modules/locale/src/LocaleTranslation.php Performs destruct operations.
LocaleTranslationTest::testDestruct function core/modules/locale/tests/src/Unit/LocaleTranslationTest.php Tests for \Drupal\locale\LocaleTranslation::destruct().
ObjectSerialization::__destruct function core/lib/Drupal/Core/Test/ObjectSerialization.php ObjectSerialization deconstructor.
RegisterServicesForDestructionPass class core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterServicesForDestructionPass.php Adds services with specific tags to "kernel_destruct_subscriber" service.
RegisterServicesForDestructionPass.php file core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterServicesForDestructionPass.php
RegisterServicesForDestructionPass::process function core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterServicesForDestructionPass.php
Registry::destruct function core/lib/Drupal/Core/Theme/Registry.php Performs destruct operations.
RouteBuilder::destruct function core/lib/Drupal/Core/Routing/RouteBuilder.php Performs destruct operations.
RouteBuilder::destruct function core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php Performs destruct operations.
ServiceDestructionTest class core/tests/Drupal/KernelTests/Core/DrupalKernel/ServiceDestructionTest.php Tests that services are correctly destructed.
ServiceDestructionTest.php file core/tests/Drupal/KernelTests/Core/DrupalKernel/ServiceDestructionTest.php
ServiceDestructionTest::testDestructionUnused function core/tests/Drupal/KernelTests/Core/DrupalKernel/ServiceDestructionTest.php Verifies that services are not unnecessarily destructed when not used.
ServiceDestructionTest::testDestructionUsed function core/tests/Drupal/KernelTests/Core/DrupalKernel/ServiceDestructionTest.php Verifies that services are destructed when used.
TestClass::destruct function core/modules/system/tests/modules/service_provider_test/src/TestClass.php Performs destruct operations.
ToolkitGdTest::testResourceDestruction function core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php Tests that GD resources are freed from memory.
Transaction::__destruct function core/lib/Drupal/Core/Database/Transaction.php

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