You are here

public function DiffEntityParser::__construct in Diff 8

Constructs a DiffEntityParser object.

Parameters

\Drupal\diff\DiffBuilderManager $diff_builder_manager: The diff builder manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

File

src/DiffEntityParser.php, line 43

Class

DiffEntityParser
Transforms an entity into an array of strings for diff.

Namespace

Drupal\diff

Code

public function __construct(DiffBuilderManager $diff_builder_manager, ConfigFactoryInterface $config_factory) {
  $this->config = $config_factory
    ->get('diff.settings');
  $this->pluginsConfig = $config_factory
    ->get('diff.plugins');
  $this->diffBuilderManager = $diff_builder_manager;
}