public function AssetInjectorBase::delete in Asset Injector 8.2
Same name and namespace in other branches
- 8 src/Entity/AssetInjectorBase.php \Drupal\asset_injector\Entity\AssetInjectorBase::delete()
On delete delete this asset's file(s).
Overrides EntityBase::delete
File
- src/
Entity/ AssetInjectorBase.php, line 124
Class
- AssetInjectorBase
- Class AssetInjectorBase: Base asset injector class.
Namespace
Drupal\asset_injector\EntityCode
public function delete() {
$storage = new AssetFileStorage($this);
$storage
->deleteFiles();
parent::delete();
}