public function Transliteration::__construct in Tamper 8
Constructs a Transliteration plugin.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin ID.
mixed $plugin_definition: The plugin definition.
mixed $source_definition: A definition of which sources there are that Tamper plugins can use.
\Drupal\Component\Transliteration\TransliterationInterface $transliteration: The transliteration service.
Overrides TamperBase::__construct
File
- src/
Plugin/ Tamper/ Transliteration.php, line 46
Class
- Transliteration
- Plugin implementation for transliteration.
Namespace
Drupal\tamper\Plugin\TamperCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, $source_definition, TransliterationInterface $transliteration) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $source_definition);
$this->transliteration = $transliteration;
}