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(array $entry = [])
39 'title' => $entry['name'],
41 'url' => $entry['url'],
42 'is_archived' => (int) $this->markAsRead
,
43 'is_starred' => false,
45 'created_at' => substr($entry['date_added'], 0, 10),
48 if (array_key_exists('tags', $entry) && $entry['tags'] != '') {
49 $data['tags'] = $entry['tags'];