function ViewEditForm::__construct

Same name in other branches
  1. 9 core/modules/views_ui/src/ViewEditForm.php \Drupal\views_ui\ViewEditForm::__construct()
  2. 8.9.x core/modules/views_ui/src/ViewEditForm.php \Drupal\views_ui\ViewEditForm::__construct()
  3. 11.x core/modules/views_ui/src/ViewEditForm.php \Drupal\views_ui\ViewEditForm::__construct()

Constructs a new ViewEditForm object.

Parameters

\Drupal\Core\TempStore\SharedTempStoreFactory $temp_store_factory: The factory for the temp store object.

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack object.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date Formatter service.

\Drupal\Core\Render\ElementInfoManagerInterface $element_info: The element info manager.

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

File

core/modules/views_ui/src/ViewEditForm.php, line 88

Class

ViewEditForm
Form controller for the Views edit form.

Namespace

Drupal\views_ui

Code

public function __construct(SharedTempStoreFactory $temp_store_factory, RequestStack $requestStack, DateFormatterInterface $date_formatter, ElementInfoManagerInterface $element_info, ThemeManagerInterface $theme_manager, ModuleHandlerInterface $module_handler) {
    $this->tempStore = $temp_store_factory->get('views');
    $this->requestStack = $requestStack;
    $this->dateFormatter = $date_formatter;
    $this->elementInfo = $element_info;
    $this->themeManager = $theme_manager;
    $this->moduleHandler = $module_handler;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.