AnalyticsController
Returns responses for Views UI routes.
- Full name:
\Drupal\analytics\Controller\AnalyticsController - Parent class:
ControllerBase
Methods
ajaxOperation
Calls a method on a view and reloads the listing page.
public ajaxOperation(\Drupal\analytics\Entity\AnalyticsServiceInterface $analytics_service, string $op, \Symfony\Component\HttpFoundation\Request $request): \Drupal\Core\Ajax\AjaxResponse|\Symfony\Component\HttpFoundation\RedirectResponse
Parameters:
| Parameter | Type | Description |
|---|---|---|
$analytics_service |
\Drupal\analytics\Entity\AnalyticsServiceInterface | |
| The analytics service being acted on. | ||
$op |
string | |
| The operation to perform, e.g., 'enable' or 'disable'. | ||
$request |
\Symfony\Component\HttpFoundation\Request | |
| The current request. |
Return Value:
Either returns a rebuilt listing page as an AJAX response, or redirects back to the listing page.