You are here

public function CurrencyAccessControlHandler::__construct in Currency 8.3

Constructs a new instance.

Parameters

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides EntityAccessControlHandler::__construct

File

src/Entity/Currency/CurrencyAccessControlHandler.php, line 27

Class

CurrencyAccessControlHandler
Checks access for currency entities.

Namespace

Drupal\currency\Entity\Currency

Code

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