You are here

public function MediaMigrationFieldPluginBase::__construct in Media Migration 8

Constructs a new plugin instance.

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\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Field\WidgetPluginManager $field_widget_manager: The field widget manager.

Overrides PluginBase::__construct

File

src/Plugin/migrate/field/MediaMigrationFieldPluginBase.php, line 44

Class

MediaMigrationFieldPluginBase
Base class for Media Migration's alternative field plugins.

Namespace

Drupal\media_migration\Plugin\migrate\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler, WidgetPluginManager $field_widget_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->moduleHandler = $module_handler;
  $this->fieldWidgetManager = $field_widget_manager;
}