interface DestructableInterface
Same name in other branches
- 9 core/lib/Drupal/Core/DestructableInterface.php \Drupal\Core\DestructableInterface
- 8.9.x core/lib/Drupal/Core/DestructableInterface.php \Drupal\Core\DestructableInterface
- 11.x core/lib/Drupal/Core/DestructableInterface.php \Drupal\Core\DestructableInterface
The interface for services that need explicit destruction.
This is useful for services that need to perform additional tasks to finalize operations or clean up after the response is sent and before the service is terminated.
Services using this interface need to be registered with the "needs_destruction" tag.
Hierarchy
- interface \Drupal\Core\DestructableInterface
Expanded class hierarchy of DestructableInterface
All classes that implement DestructableInterface
9 files declare their use of DestructableInterface
- CacheCollector.php in core/
lib/ Drupal/ Core/ Cache/ CacheCollector.php - Destructable.php in core/
modules/ system/ tests/ modules/ destructable_test/ src/ Destructable.php - LocaleTranslation.php in core/
modules/ locale/ src/ LocaleTranslation.php - ModuleHandlerInterface.php in core/
lib/ Drupal/ Core/ Extension/ ModuleHandlerInterface.php - PerformanceDataCollector.php in core/
modules/ system/ tests/ modules/ performance_test/ src/ PerformanceDataCollector.php
File
-
core/
lib/ Drupal/ Core/ DestructableInterface.php, line 15
Namespace
Drupal\CoreView source
interface DestructableInterface {
/**
* Performs destruct operations.
*/
public function destruct();
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
DestructableInterface::destruct | public | function | Performs destruct operations. | 9 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.