You are here

public function FarmGroupMembersViewsAccessCheck::__construct in farmOS 2.x

FarmGroupMembersViewsAccessCheck constructor.

Parameters

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

File

modules/asset/group/src/Access/FarmGroupMembersViewsAccessCheck.php, line 28

Class

FarmGroupMembersViewsAccessCheck
Checks access for displaying Views of group members.

Namespace

Drupal\farm_group\Access

Code

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