You are here

public function PaymentStatusForm::__construct in Payment 8.2

Constructs a new instance.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translator.

\Drupal\Core\Entity\EntityStorageInterface $payment_status_storage: The payment status storage.

\Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorManagerInterface $plugin_selector_manager: The plugin selector manager.

\Drupal\plugin\PluginType\PluginTypeInterface $payment_status_plugin_type: The payment status plugin type.

File

src/Entity/PaymentStatus/PaymentStatusForm.php, line 52

Class

PaymentStatusForm
Provides the payment status add/edit form.

Namespace

Drupal\payment\Entity\PaymentStatus

Code

public function __construct(TranslationInterface $string_translation, EntityStorageInterface $payment_status_storage, PluginSelectorManagerInterface $plugin_selector_manager, PluginTypeInterface $payment_status_plugin_type) {
  $this->paymentStatusStorage = $payment_status_storage;
  $this->pluginSelectorManager = $plugin_selector_manager;
  $this->paymentStatusPluginType = $payment_status_plugin_type;
  $this->stringTranslation = $string_translation;
}