You are here

public function FieldDiffBuilderBase::__construct in Diff 8

Constructs a FieldDiffBuilderBase object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\diff\DiffEntityParser $entity_parser: The entity parser.

Overrides PluginBase::__construct

1 call to FieldDiffBuilderBase::__construct()
CoreFieldBuilder::__construct in src/Plugin/diff/Field/CoreFieldBuilder.php
Constructs a CoreFieldBuilder object.
1 method overrides FieldDiffBuilderBase::__construct()
CoreFieldBuilder::__construct in src/Plugin/diff/Field/CoreFieldBuilder.php
Constructs a CoreFieldBuilder object.

File

src/FieldDiffBuilderBase.php, line 52

Class

FieldDiffBuilderBase
Base class for field diff builder plugins.

Namespace

Drupal\diff

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, DiffEntityParser $entity_parser) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityParser = $entity_parser;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configuration += $this
    ->defaultConfiguration();
}