You are here

public function Currency::__construct in Currency 8.3

Same name in this branch
  1. 8.3 src/Entity/Currency.php \Drupal\currency\Entity\Currency::__construct()
  2. 8.3 src/Plugin/views/filter/Currency.php \Drupal\currency\Plugin\views\filter\Currency::__construct()
  3. 8.3 src/Plugin/views/field/Currency.php \Drupal\currency\Plugin\views\field\Currency::__construct()

Constructs a new instance.

Parameters

mixed[] $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\currency\FormHelperInterface: The form helper.

Overrides HandlerBase::__construct

File

src/Plugin/views/filter/Currency.php, line 38

Class

Currency
A Views filter handler to filter currencies by ISO 4217 code.

Namespace

Drupal\currency\Plugin\views\filter

Code

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