public function LeafletAjaxPopupController::accessCheck in Leaflet 8
Same name and namespace in other branches
- 2.1.x modules/leaflet_views/src/Controller/LeafletAjaxPopupController.php \Drupal\leaflet_views\Controller\LeafletAjaxPopupController::accessCheck()
 - 2.0.x modules/leaflet_views/src/Controller/LeafletAjaxPopupController.php \Drupal\leaflet_views\Controller\LeafletAjaxPopupController::accessCheck()
 
User LeafletAjaxPopup page access checker.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to check the permission for view.
Return value
\Drupal\Core\Access\AccessResult The Access check results.
1 string reference to 'LeafletAjaxPopupController::accessCheck'
- leaflet_views.routing.yml in modules/
leaflet_views/ leaflet_views.routing.yml  - modules/leaflet_views/leaflet_views.routing.yml
 
File
- modules/
leaflet_views/ src/ Controller/ LeafletAjaxPopupController.php, line 65  
Class
- LeafletAjaxPopupController
 - Default controller for the leaflet_views_ajax_popup module.
 
Namespace
Drupal\leaflet_views\ControllerCode
public function accessCheck(EntityInterface $entity) {
  return AccessResult::allowedIf($entity
    ->access('view'));
}