You are here

public function MediaWysiwygFilter::__construct in Media Migration 8

Constructs a new MediaWysiwygFilter 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\migrate\Plugin\MigrationInterface $migration: The migration entity.

\Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayManager|null $entity_embed_display_manager: The entity embed display plugin manager service, if available.

\Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager: The migration plugin manager.

\Drupal\media_migration\MediaMigrationUuidOracleInterface $media_uuid_oracle: The media UUID oracle.

Overrides EmbedFilterBase::__construct

File

src/Plugin/migrate/process/MediaWysiwygFilter.php, line 94

Class

MediaWysiwygFilter
Processes [[{"type":"media","fid":"1234",...}]] tokens in content.

Namespace

Drupal\media_migration\Plugin\migrate\process

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, $entity_embed_display_manager, MigrationPluginManagerInterface $migration_plugin_manager, MediaMigrationUuidOracleInterface $media_uuid_oracle) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $media_uuid_oracle, $entity_embed_display_manager);
  $this
    ->setConfiguration($configuration);
  $this->migrationPluginManager = $migration_plugin_manager;
}