You are here

public function DiffGeneratorPluginBase::__construct in Entity Share 8.3

Constructs a DiffManagerBase 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\entity_share_client\Service\RemoteManagerInterface $remoteManager: The remote manager service.

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

\Drupal\entity_share_diff\Service\EntityParserInterface $entity_parser: The entity parser service.

Overrides PluginBase::__construct

File

modules/entity_share_diff/src/DiffGenerator/DiffGeneratorPluginBase.php, line 67

Class

DiffGeneratorPluginBase
Base class for Diff plugins.

Namespace

Drupal\entity_share_diff\DiffGenerator

Code

public function __construct(array $configuration, string $plugin_id, $plugin_definition, RemoteManagerInterface $remoteManager, EntityTypeManagerInterface $entity_type_manager, EntityParserInterface $entity_parser) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->remoteManager = $remoteManager;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityParser = $entity_parser;
  $this->remote = NULL;
}