/** * Deletes a file. * * @param int $file_id * The file id. * @param int $feed_id * The feed id. * * @see file_delete() */ protected function deleteFile($file_id, $feed_id) { if ($file = $this->fileStorage->load($file_id)) { $this->fileUsage->delete($file, 'feeds', $this->pluginType(), $feed_id); } }
/** * Determines if the importer already exists. * * @param string $id * The importer ID. * * @return bool * True if the importer exists, false otherwise. */ public function exists($id) { return (bool) $this->importerStorage->load($id); }