You are here

public function TamperBase::__construct in Tamper 8

Constructs a TamperBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the formatter.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\tamper\SourceDefinitionInterface $source_definition: A definition of which sources there are that Tamper plugins can use.

Overrides PluginBase::__construct

1 call to TamperBase::__construct()
Transliteration::__construct in src/Plugin/Tamper/Transliteration.php
Constructs a Transliteration plugin.
1 method overrides TamperBase::__construct()
Transliteration::__construct in src/Plugin/Tamper/Transliteration.php
Constructs a Transliteration plugin.

File

src/TamperBase.php, line 33

Class

TamperBase
Provides a base class to tamper data from.

Namespace

Drupal\tamper

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, SourceDefinitionInterface $source_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->sourceDefinition = $source_definition;
  $this
    ->setConfiguration($configuration);
}