public function PurgerBase::delete in Purge 8.3
The current instance of this purger plugin is about to be deleted.
When end-users decide to uninstall this purger through the user interface, this method gets called. Especially when this purger is multi-instantiable this gets useful as it allows to remove configuration and perform cleanup prior to when the instance gets uninstalled.
Overrides PurgerInterface::delete
See also
\Drupal\purge\Plugin\Purge\Purger\PurgersServiceInterface::setPluginsEnabled()
1 method overrides PurgerBase::delete()
- NullPurgerBase::delete in tests/
modules/ purge_purger_test/ src/ Plugin/ Purge/ Purger/ NullPurgerBase.php - The current instance of this purger plugin is about to be deleted.
File
- src/
Plugin/ Purge/ Purger/ PurgerBase.php, line 65
Class
- PurgerBase
- Provides a base class for all purgers - the cache invalidation executors.
Namespace
Drupal\purge\Plugin\Purge\PurgerCode
public function delete() {
if ($this->pluginDefinition['multi_instance']) {
throw new \LogicException('Plugin is multi-instantiable, ::delete() not implemented!');
}
}