You are here

public function MachineName::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/src/Plugin/migrate/process/MachineName.php \Drupal\migrate\Plugin\migrate\process\MachineName::__construct()

Constructs a MachineName plugin.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\Component\Transliteration\TransliterationInterface $transliteration: The transliteration service.

Overrides PluginBase::__construct

File

core/modules/migrate/src/Plugin/migrate/process/MachineName.php, line 62

Class

MachineName
Creates a machine name.

Namespace

Drupal\migrate\Plugin\migrate\process

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TransliterationInterface $transliteration) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->transliteration = $transliteration;
}