3 namespace Wallabag\ImportBundle\Import
;
5 class ChromeImport
extends BrowserImport
12 public function getName()
20 public function getUrl()
22 return 'import_chrome';
28 public function getDescription()
30 return 'import.chrome.description';
36 protected function prepareEntry($entry = [])
39 'title' => $entry['name'],
41 'url' => $entry['url'],
42 'is_archived' => $this->markAsRead
,
44 'created_at' => $entry['date_added'],
47 if (array_key_exists('tags', $entry) && $entry['tags'] != '') {
48 $data['tags'] = $entry['tags'];
57 protected function setEntryAsRead(array $importedEntry)
59 $importedEntry['is_archived'] = 1;
61 return $importedEntry;