public function FarmInventoryAssetViewsAccessCheck::__construct in farmOS 2.x
FarmInventoryAssetViewsAccessCheck constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
File
- modules/
core/ ui/ views/ src/ Access/ FarmInventoryAssetViewsAccessCheck.php, line 28
Class
- FarmInventoryAssetViewsAccessCheck
- Checks access for displaying Views of inventory quantities for an asset.
Namespace
Drupal\farm_ui_views\AccessCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->assetStorage = $entity_type_manager
->getStorage('asset');
}