You are here

public function EntityPermissions::__construct in Entity API 8

Constructs a new EntityPermissions object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/EntityPermissions.php, line 30

Class

EntityPermissions
Generates entity permissions via their permission providers.

Namespace

Drupal\entity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}