3 namespace Wallabag\ImportBundle\Import
;
5 use Psr\Log\LoggerInterface
;
6 use Psr\Log\NullLogger
;
7 use Doctrine\ORM\EntityManager
;
8 use Wallabag\CoreBundle\Entity\Entry
;
9 use Wallabag\UserBundle\Entity\User
;
10 use Wallabag\CoreBundle\Helper\ContentProxy
;
12 class ChromeImport
extends BrowserImport
19 public function getName()
27 public function getUrl()
29 return 'import_chrome';
35 public function getDescription()
37 return 'import.chrome.description';
43 protected function prepareEntry($entry = [])
46 'title' => $entry['name'],
48 'url' => $entry['url'],
49 'is_archived' => $this->markAsRead
,
51 'created_at' => $entry['date_added'],
54 if (array_key_exists('tags', $entry) && $entry['tags'] != '') {
55 $data['tags'] = $entry['tags'];
65 protected function setEntryAsRead(array $importedEntry)
67 $importedEntry['is_archived'] = 1;
69 return $importedEntry;