You are here

public function PluginBase::__construct in Feeds 8.3

Constructs a PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

3 calls to PluginBase::__construct()
EntityProcessorBase::__construct in src/Feeds/Processor/EntityProcessorBase.php
Constructs an EntityProcessorBase object.
HttpFetcher::__construct in src/Feeds/Fetcher/HttpFetcher.php
Constructs an UploadFetcher object.
UploadFetcher::__construct in src/Feeds/Fetcher/UploadFetcher.php
Constructs an UploadFetcher object.
4 methods override PluginBase::__construct()
EntityProcessorBase::__construct in src/Feeds/Processor/EntityProcessorBase.php
Constructs an EntityProcessorBase object.
HttpFetcher::__construct in src/Feeds/Fetcher/HttpFetcher.php
Constructs an UploadFetcher object.
TargetBase::__construct in src/Plugin/Type/Target/TargetBase.php
Constructs a TargetBase object.
UploadFetcher::__construct in src/Feeds/Fetcher/UploadFetcher.php
Constructs an UploadFetcher object.

File

src/Plugin/Type/PluginBase.php, line 52

Class

PluginBase
The base class for the fetcher, parser, and processor plugins.

Namespace

Drupal\feeds\Plugin\Type

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition) {
  assert(isset($configuration["feed_type"]) && $configuration["feed_type"] instanceof FeedTypeInterface);
  $this->feedType = $configuration['feed_type'];
  unset($configuration['feed_type']);
  $this
    ->setConfiguration($configuration);
  $this->pluginId = $plugin_id;
  $this->pluginDefinition = $plugin_definition;
}