You are here

public function RabbitHolePermissionGenerator::__construct in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 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;
}