public function ViewPreviewFormController::__construct

Constructs a new ViewPreviewFormController object.

Parameters

string $operation: The name of the current operation.

\Drupal\user\TempStoreFactory $temp_store_factory: The factory for the temp store object.

Overrides EntityFormController::__construct

File

drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewPreviewFormController.php, line 34
Contains Drupal\views_ui\ViewPreviewFormController.

Class

ViewPreviewFormController
Form controller for the Views preview form.

Namespace

Drupal\views_ui

Code

public function __construct($operation, TempStoreFactory $temp_store_factory) {
  parent::__construct($operation);
  $this->tempStore = $temp_store_factory
    ->get('views');
}