function ViewDuplicateForm::__construct

Same name in other branches
  1. 11.x core/modules/views_ui/src/ViewDuplicateForm.php \Drupal\views_ui\ViewDuplicateForm::__construct()

Constructs a ViewDuplicateForm.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: Drupal's module handler.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

core/modules/views_ui/src/ViewDuplicateForm.php, line 42

Class

ViewDuplicateForm
Form controller for the Views duplicate form.

Namespace

Drupal\views_ui

Code

public function __construct(ModuleHandlerInterface $moduleHandler, LanguageManagerInterface $language_manager) {
    $this->setModuleHandler($moduleHandler);
    $this->languageManager = $language_manager;
}

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