You are here

public function CacheableViewsAjaxResponse::serialize in Views Ajax Get 2.0.x

Same name and namespace in other branches
  1. 8 src/CacheableViewsAjaxResponse.php \Drupal\views_ajax_get\CacheableViewsAjaxResponse::serialize()

File

src/CacheableViewsAjaxResponse.php, line 18

Class

CacheableViewsAjaxResponse

Namespace

Drupal\views_ajax_get

Code

public function serialize() {
  $vars = get_object_vars($this);
  unset($vars['view']);
  $vars['view_id'] = $this->view
    ->id();
  $vars['display_id'] = $this->view->current_display;
  return serialize($vars);
}