You are here

protected function FeedsConfigurable::__construct in Feeds 8.2

Constructor, set id and load default configuration.

3 calls to FeedsConfigurable::__construct()
FeedsImporter::__construct in lib/Drupal/feeds/FeedsImporter.php
Instantiate class variables, initialize and configure plugins.
FeedsPlugin::__construct in lib/Drupal/feeds/Plugin/FeedsPlugin.php
Constructor.
FeedsSource::__construct in lib/Drupal/feeds/FeedsSource.php
Constructor.
3 methods override FeedsConfigurable::__construct()
FeedsImporter::__construct in lib/Drupal/feeds/FeedsImporter.php
Instantiate class variables, initialize and configure plugins.
FeedsPlugin::__construct in lib/Drupal/feeds/Plugin/FeedsPlugin.php
Constructor.
FeedsSource::__construct in lib/Drupal/feeds/FeedsSource.php
Constructor.

File

lib/Drupal/feeds/Plugin/FeedsConfigurable.php, line 73
FeedsConfigurable and helper functions.

Class

FeedsConfigurable
Base class for configurable classes. Captures configuration handling, form handling and distinguishes between in-memory configuration and persistent configuration.

Namespace

Drupal\feeds\Plugin

Code

protected function __construct($id) {

  // Set this object's id.
  $this->id = $id;

  // Per default we assume that a Feeds object is not saved to
  // database nor is it exported to code.
  $this->export_type = FEEDS_EXPORT_NONE;

  // Make sure configuration is populated.
  $this->config = $this
    ->configDefaults();
  $this->disabled = FALSE;
}