function _openlayers_services_access in Openlayers 7.3
1 string reference to '_openlayers_services_access'
- openlayers_services_services_resources in modules/
openlayers_services/ openlayers_services.module - Implements hook_services_resources().
File
- modules/
openlayers_services/ openlayers_services.helpers.inc, line 32 - Helper functions
Code
function _openlayers_services_access($operation, $map) {
$map = \Drupal\openlayers\Openlayers::load('Map', $map[0]);
return $map == TRUE && (bool) $map
->getOption('provideIframe', FALSE);
}