You are here

public function HttpPurgerBase::delete in Generic HTTP Purger 8

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 PurgerBase::delete

See also

\Drupal\purge\Plugin\Purge\Purger\PurgersServiceInterface::setPluginsEnabled()

File

src/Plugin/Purge/Purger/HttpPurgerBase.php, line 75

Class

HttpPurgerBase
Abstract base class for HTTP based configurable purgers.

Namespace

Drupal\purge_purger_http\Plugin\Purge\Purger

Code

public function delete() {
  HttpPurgerSettings::load($this
    ->getId())
    ->delete();
}