3 namespace Wallabag\ImportBundle\Import
;
5 class WallabagV2Import
extends WallabagImport
10 public function getName()
18 public function getUrl()
20 return 'import_wallabag_v2';
26 public function getDescription()
28 return 'import.wallabag_v2.description';
34 protected function prepareEntry($entry = [])
37 'html' => $entry['content'],
38 'content_type' => $entry['mimetype'],
39 'is_archived' => (int) ($entry['is_archived'] || $this->markAsRead
),
40 'is_starred' => false,
47 protected function setEntryAsRead(array $importedEntry)
49 $importedEntry['is_archived'] = 1;
51 return $importedEntry;