protected function _afterDeleteFile(Event $event) {
		$entity = $event->getData('entity');

		return $this->dispatchEvent('FileStorage.afterDeleteFile', [
			'entity' => $entity,
			'adapter' => $this->getStorageAdapter($entity->get('adapter'))
		]);
	}
protected function _afterDeleteFile(Event $event) {
		$entity = $event->getData('entity');

		return $this->dispatchEvent('FileStorage.afterDeleteFile', [
			'entity' => $entity,
			'adapter' => $this->getStorageAdapter($entity->get('adapter'))
		]);
	}
protected function _afterDeleteFile ( Event $ event ) { $ entity = $ event -> getData ( 'entity' ) ; return $ this -> dispatchEvent ( 'FileStorage.afterDeleteFile' , [ 'entity' => $ entity , 'adapter' => $ this -> getStorageAdapter ( $ entity -> get ( 'adapter' ) ) ] ) ; }
Callback to handle the case something needs to be done after the file was
successfully removed from the storage backend.

By default this will trigger an event FileStorage.afterStoreFile but you
can also just overload this method.

@param \Cake\Event\Event $event
@return \Cake\Event\Event
Callback to handle the case something needs to be done after the file was successfully removed from the storage backend .