You are here

public function ViewsMegarowController::content in Views Megarow 8

Controller method for Ajax content.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request object.

callable $_content: The callable that returns the content of the Ajax response.

Return value

\Drupal\Core\Ajax\AjaxResponse A response object.

File

src/Controller/ViewsMegarowController.php, line 56

Class

ViewsMegarowController
Default controller for Ajax requests.

Namespace

Drupal\views_megarow\Controller

Code

public function content(Request $request, $_content) {
  $content = $this
    ->getContentResult($request, $_content);
  return $this->viewsMegarowRenderer
    ->render($content);
}