You are here

public function ParserBase::__construct in Feeds extensible parsers 8

Constructs a ParserBase object.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin id.

array $plugin_definition: The plugin definition.

Overrides PluginBase::__construct

2 calls to ParserBase::__construct()
JsonParserBase::__construct in src/Feeds/Parser/JsonParserBase.php
Constructs a JsonParserBase object.
XmlParser::__construct in src/Feeds/Parser/XmlParser.php
Constructs a JsonParserBase object.
2 methods override ParserBase::__construct()
JsonParserBase::__construct in src/Feeds/Parser/JsonParserBase.php
Constructs a JsonParserBase object.
XmlParser::__construct in src/Feeds/Parser/XmlParser.php
Constructs a JsonParserBase object.

File

src/Feeds/Parser/ParserBase.php, line 75

Class

ParserBase
The Feeds extensible parser.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition) {
  if (!$this
    ->hasConfigForm()) {
    unset($plugin_definition['form']['configuration']);
  }
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}