emitAssetRemoved() public method

Signals that an asset was removed.
public emitAssetRemoved ( Neos\Media\Domain\Model\AssetInterface $asset ) : void
$asset Neos\Media\Domain\Model\AssetInterface
return void
コード例 #1
0
 /**
  * Remove the asset even if it is still in use. Use with care, it is probably
  * better to first make sure the asset is not used anymore and then use
  * the remove() method for removal.
  *
  * @param AssetInterface $object
  * @return void
  */
 public function removeWithoutUsageChecks($object)
 {
     parent::remove($object);
     $this->assetService->emitAssetRemoved($object);
 }