return 'import.firefox.description';
}
+ /**
+ * {@inheritdoc}
+ */
+ public function validateEntry(array $importedEntry)
+ {
+ if (empty($importedEntry['uri'])) {
+ return false;
+ }
+
+ return true;
+ }
+
/**
* {@inheritdoc}
*/
'title' => $entry['title'],
'html' => false,
'url' => $entry['uri'],
- 'is_archived' => $this->markAsRead,
+ 'is_archived' => (int) $this->markAsRead,
+ 'is_starred' => false,
'tags' => '',
'created_at' => substr($entry['dateAdded'], 0, 10),
];
- if (array_key_exists('tags', $entry) && $entry['tags'] != '') {
+ if (array_key_exists('tags', $entry) && '' !== $entry['tags']) {
$data['tags'] = $entry['tags'];
}