You are here

public function JmesPathParser::__construct in Feeds extensible parsers 8

Constructs a JsonParserBase object.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin id.

array $plugin_definition: The plugin definition.

\Drupal\feeds_ex\Utility\JsonUtility $utility: The JSON helper class.

Overrides JsonParserBase::__construct

File

src/Feeds/Parser/JmesPathParser.php, line 48

Class

JmesPathParser
Defines a JSON parser using JMESPath.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, JsonUtility $utility) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $utility);

  // Set default factory.
  $this->runtimeFactory = new JmesRuntimeFactory();
}