You are here

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'
geofield_map.routing.yml in ./geofield_map.routing.yml
geofield_map.routing.yml

File

src/Controller/GeofieldMapAjaxPopupController.php, line 65

Class

GeofieldMapAjaxPopupController
Default controller for the leaflet_views_ajax_popup module.

Namespace

Drupal\geofield_map\Controller

Code

public function accessCheck(EntityInterface $entity) {
  return AccessResult::allowedIf($entity
    ->access('view'));
}