You are here

public function Permissions::__construct in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 src/Permissions.php \Drupal\entity_browser\Permissions::__construct()

Constructs Permissions object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity manager service.

File

src/Permissions.php, line 30

Class

Permissions
Generates routes for entity browsers.

Namespace

Drupal\entity_browser

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->browserStorage = $entity_type_manager
    ->getStorage('entity_browser');
}