3 namespace Drupal\aggregator\Plugin\migrate\source;
5 use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
8 * Drupal feed source from database.
11 * id = "aggregator_feed",
12 * source_module = "aggregator"
15 class AggregatorFeed extends DrupalSqlBase {
20 public function query() {
21 return $this->select('aggregator_feed', 'af')
28 public function fields() {
30 'fid' => $this->t('The feed ID.'),
31 'title' => $this->t('Title of the feed.'),
32 'url' => $this->t('URL to the feed.'),
33 'refresh' => $this->t('Refresh frequency in seconds.'),
34 'checked' => $this->t('Last-checked unix timestamp.'),
35 'link' => $this->t('Parent website of the feed.'),
36 'description' => $this->t("Parent website's description of the feed."),
37 'image' => $this->t('An image representing the feed.'),
38 'etag' => $this->t('Entity tag HTTP response header.'),
39 'modified' => $this->t('When the feed was last modified.'),
40 'block' => $this->t("Number of items to display in the feed's block."),
42 if ($this->getModuleSchemaVersion('system') >= 7000) {
43 $fields['queued'] = $this->t('Time when this feed was queued for refresh, 0 if not queued.');
51 public function getIds() {
52 $ids['fid']['type'] = 'integer';