You are here

public function EntityBundleInfo::__construct in Payment 8.2

Constructs a new instance.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $payment_type_manager:

\Drupal\Component\Plugin\PluginManagerInterface $payment_method_configuration_manager:

File

src/Hook/EntityBundleInfo.php, line 34

Class

EntityBundleInfo
Implements hook_entity_bundle_info().

Namespace

Drupal\payment\Hook

Code

public function __construct(PluginManagerInterface $payment_type_manager, PluginManagerInterface $payment_method_configuration_manager) {
  $this->paymentMethodConfigurationManager = $payment_method_configuration_manager;
  $this->paymentTypeManager = $payment_type_manager;
}