You are here

public function FarmAssetChildrenViewsAccessCheck::__construct in farmOS 2.x

FarmAssetChildrenViewsAccessCheck constructor.

Parameters

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

\Drupal\farm_location\AssetLocationInterface $asset_location: The asset location service.

File

modules/core/ui/views/src/Access/FarmAssetChildrenViewsAccessCheck.php, line 38

Class

FarmAssetChildrenViewsAccessCheck
Checks access for displaying Views of asset children.

Namespace

Drupal\farm_ui_views\Access

Code

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