You are here

public function PaymentMethodConfigurationAccessControlHandler::__construct in Payment 8.2

Constructs a new instance.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler:

Overrides EntityAccessControlHandler::__construct

File

src/Entity/PaymentMethodConfiguration/PaymentMethodConfigurationAccessControlHandler.php, line 26

Class

PaymentMethodConfigurationAccessControlHandler
Checks access for payment method configurations.

Namespace

Drupal\payment\Entity\PaymentMethodConfiguration

Code

public function __construct(EntityTypeInterface $entity_type, ModuleHandlerInterface $module_handler) {
  parent::__construct($entity_type);
  $this->moduleHandler = $module_handler;
}