interface DestructableInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
6 files declare their use of DestructableInterface
- CacheCollector.php in core/
lib/ Drupal/ Core/ Cache/ CacheCollector.php - Contains \Drupal\Core\Cache\CacheCollector.
- LocaleTranslation.php in core/
modules/ locale/ src/ LocaleTranslation.php - Contains \Drupal\locale\LocaleTranslation.
- Registry.php in core/
lib/ Drupal/ Core/ Theme/ Registry.php - Contains \Drupal\Core\Theme\Registry.
- RouteBuilder.php in core/
lib/ Drupal/ Core/ Routing/ RouteBuilder.php - Contains \Drupal\Core\Routing\RouteBuilder.
- TestClass.php in core/
modules/ system/ tests/ modules/ service_provider_test/ src/ TestClass.php - Contains \Drupal\service_provider_test\TestClass.
File
- core/
lib/ Drupal/ Core/ DestructableInterface.php, line 20 - Contains \Drupal\Core\DestructableInterface.
Namespace
Drupal\CoreView source
interface DestructableInterface {
/**
* Performs destruct operations.
*/
public function destruct();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DestructableInterface:: |
public | function | Performs destruct operations. | 6 |