/** * Fired after deleting the file. * * @param EntryInterface|FileInterface $entry */ public function deleted(EntryInterface $entry) { /** * Make sure the resource exists * and is deleted successfully. */ if ($entry->isForceDeleting() && ($resource = $entry->resource())) { $resource->delete(); } parent::deleted($entry); }
/** * Fired after a page type is deleted. * * @param EntryInterface|TypeInterface $entry */ public function deleted(EntryInterface $entry) { $this->commands->dispatch(new DeletePages($entry)); $this->commands->dispatch(new DeleteStream($entry)); parent::deleted($entry); }
/** * Fired after an entry is deleted. * * @param EntryInterface $entry */ public function deleted(EntryInterface $entry) { $this->dispatch(new UnsetChildLinks($entry)); parent::deleted($entry); }
/** * Fired after a page is deleted. * * @param EntryInterface|PageInterface $entry */ public function deleted(EntryInterface $entry) { $this->dispatch(new DeleteChildren($entry)); $this->dispatch(new DeleteEntry($entry)); parent::deleted($entry); }
/** * Fired after an entry is deleted. * * @param EntryInterface $entry */ public function deleted(EntryInterface $entry) { $this->dispatch(new DeleteMenuLinks($entry)); parent::deleted($entry); }
/** * Fired after a redirect is deleted. * * @param EntryInterface|RedirectInterface $entry */ public function deleted(EntryInterface $entry) { $this->commands->dispatch(new GenerateRoutesFile()); parent::deleted($entry); }
/** * Fired after a user is deleted. * * @param EntryInterface $entry */ public function deleted(EntryInterface $entry) { $this->events->fire(new UserWasDeleted($entry)); parent::deleted($entry); }