You are here

protected function FeedsSource::__construct in Feeds 8.2

Constructor.

Overrides FeedsConfigurable::__construct

File

lib/Drupal/feeds/FeedsSource.php, line 82
Definition of FeedsSourceInterface and FeedsSource class.

Class

FeedsSource
This class encapsulates a source of a feed. It stores where the feed can be found and how to import it.

Namespace

Drupal\feeds

Code

protected function __construct($importer_id, $feed_nid) {
  $this->feed_nid = $feed_nid;
  $this->importer = feeds_importer($importer_id);
  parent::__construct($importer_id);
  $this
    ->load();
}