function LanguageFormBase::__construct

Same name in other branches
  1. 9 core/modules/language/src/Form/LanguageFormBase.php \Drupal\language\Form\LanguageFormBase::__construct()
  2. 8.9.x core/modules/language/src/Form/LanguageFormBase.php \Drupal\language\Form\LanguageFormBase::__construct()
  3. 10 core/modules/language/src/Form/LanguageFormBase.php \Drupal\language\Form\LanguageFormBase::__construct()

Constructs a ContentEntityForm object.

Parameters

\Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The configurable language manager.

File

core/modules/language/src/Form/LanguageFormBase.php, line 30

Class

LanguageFormBase
Base form for language add and edit forms.

Namespace

Drupal\language\Form

Code

public function __construct(ConfigurableLanguageManagerInterface $language_manager) {
    $this->languageManager = $language_manager;
}

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