You are here

public function JmesPathParser::setRuntimeFactory in Feeds extensible parsers 8

Sets the factory to use for creating JMESPath Runtime objects.

This is useful in unit tests.

Parameters

\Drupal\feeds_ex\JmesRuntimeFactoryInterface $factory: The factory to use.

File

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

Class

JmesPathParser
Defines a JSON parser using JMESPath.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

public function setRuntimeFactory(JmesRuntimeFactoryInterface $factory) {
  $this->runtimeFactory = $factory;
}