public function GeofieldMapAjaxPopupController::accessCheck in Geofield Map 8.2
User GeofieldMapAjaxPopup 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 'GeofieldMapAjaxPopupController::accessCheck'
File
- src/
Controller/ GeofieldMapAjaxPopupController.php, line 65
Class
- GeofieldMapAjaxPopupController
- Default controller for the leaflet_views_ajax_popup module.
Namespace
Drupal\geofield_map\ControllerCode
public function accessCheck(EntityInterface $entity) {
return AccessResult::allowedIf($entity
->access('view'));
}