You are here

public function FarmAssetLogViewsAccessCheck::__construct in farmOS 2.x

FarmAssetLogViewsAccessCheck constructor.

Parameters

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

File

modules/core/ui/views/src/Access/FarmAssetLogViewsAccessCheck.php, line 28

Class

FarmAssetLogViewsAccessCheck
Checks access for displaying Views of logs that reference assets.

Namespace

Drupal\farm_ui_views\Access

Code

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