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 public function validateEntry(array $importedEntry)
38 if (empty($importedEntry['url'])) {
48 protected function prepareEntry(array $entry = [])
51 'title' => $entry['name'],
53 'url' => $entry['url'],
54 'is_archived' => (int) $this->markAsRead
,
55 'is_starred' => false,
57 'created_at' => substr($entry['date_added'], 0, 10),
60 if (\array_key_exists
('tags', $entry) && '' !== $entry['tags']) {
61 $data['tags'] = $entry['tags'];