You are here

public function DisplayFieldCopy::__construct in Display Field Copy 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/DsField/DisplayFieldCopy.php \Drupal\display_field_copy\Plugin\DsField\DisplayFieldCopy::__construct()

Constructs a Display Suite field plugin.

File

src/Plugin/DsField/DisplayFieldCopy.php, line 53

Class

DisplayFieldCopy
Defines a generic dynamic field that holds a copy of an exisitng core field.

Namespace

Drupal\display_field_copy\Plugin\DsField

Code

public function __construct($configuration, $plugin_id, $plugin_definition, PluginManagerInterface $formatter_plugin_manager, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager) {
  $this->formatterPluginManager = $formatter_plugin_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}