You are here

public function SettingsForm::__construct in Synonyms 2.0.x

SettingsForm constructor.

Parameters

\Drupal\synonyms\SynonymsService\BehaviorService $behavior_service: The behavior service.

Drupal\Core\Render\RendererInterface $renderer: The renderer.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 50

Class

SettingsForm
Defines a form that configures forms module settings.

Namespace

Drupal\synonyms\Form

Code

public function __construct(BehaviorService $behavior_service, RendererInterface $renderer) {
  $this->behaviorService = $behavior_service;
  $this->renderer = $renderer;
  $this->widgets = $this->behaviorService
    ->getWidgetServices();
}