public function Unavailable::__construct in Payment 8.2
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\payment\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translator.
Overrides PaymentTypeBase::__construct
File
- src/
Plugin/ Payment/ Type/ Unavailable.php, line 41
Class
- Unavailable
- An unavailable payment type.
Namespace
Drupal\payment\Plugin\Payment\TypeCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, EventDispatcherInterface $event_dispatcher, TranslationInterface $string_translation) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher);
$this->stringTranslation = $string_translation;
}