You are here

public function AssetContainer::deleteAll in Mini site 8

Delete all assets.

File

src/AssetContainer.php, line 113

Class

AssetContainer
Class Asset.

Namespace

Drupal\minisite

Code

public function deleteAll() {
  foreach ($this->assets as $k => $asset) {
    $asset
      ->delete();
    unset($this->assets[$k]);
  }
}