You are here

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

File

src/Controller/ExportAnalyticsController.php, line 69

Class

ExportAnalyticsController
Defines a controller for exporting and downloading analytics data.

Namespace

Drupal\apigee_edge\Controller

Code

public function access($data_id) : AccessResultInterface {
  return AccessResult::allowedIf($this->store
    ->get($data_id) !== NULL);
}