public function ExportAnalyticsController::access in Apigee Edge 8
Checks access for downloading exported analytics data.
Parameters
int $data_id: The ID of the stored analytics data.
Return value
\Drupal\Core\Access\AccessResultInterface The access result.
1 string reference to 'ExportAnalyticsController::access'
File
- src/
Controller/ ExportAnalyticsController.php, line 69
Class
- ExportAnalyticsController
- Defines a controller for exporting and downloading analytics data.
Namespace
Drupal\apigee_edge\ControllerCode
public function access($data_id) : AccessResultInterface {
return AccessResult::allowedIf($this->store
->get($data_id) !== NULL);
}