You are here

public function RabbitHolePermissionGenerator::__construct in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x src/RabbitHolePermissionGenerator.php \Drupal\rabbit_hole\RabbitHolePermissionGenerator::__construct()

Constructor.

File

src/RabbitHolePermissionGenerator.php, line 36

Class

RabbitHolePermissionGenerator
Generates permission for each supported entity type.

Namespace

Drupal\rabbit_hole

Code

public function __construct(EntityTypeManagerInterface $etm, RabbitHoleEntityPluginManager $entity_plugin_manager, TranslationInterface $translation) {
  $this->entityTypeManager = $etm;
  $this->rhEntityPluginManager = $entity_plugin_manager;
  $this->stringTranslation = $translation;
}