You are here

public function FormComponentBase::__construct in Flexiform 8

3 calls to FormComponentBase::__construct()
CustomTextComponent::__construct in src/Plugin/FormComponentType/CustomTextComponent.php
FieldWidgetComponent::__construct in src/Plugin/FormComponentType/FieldWidgetComponent.php
FormElementComponent::__construct in src/Plugin/FormComponentType/FormElementComponent.php
3 methods override FormComponentBase::__construct()
CustomTextComponent::__construct in src/Plugin/FormComponentType/CustomTextComponent.php
FieldWidgetComponent::__construct in src/Plugin/FormComponentType/FieldWidgetComponent.php
FormElementComponent::__construct in src/Plugin/FormComponentType/FormElementComponent.php

File

src/FormComponent/FormComponentBase.php, line 96

Class

FormComponentBase
Provides the base form component plugin.

Namespace

Drupal\flexiform\FormComponent

Code

public function __construct($name, array $options, FlexiformEntityFormDisplay $form_display) {
  $this->name = $name;
  $this->options = $options;
  $this
    ->setFormDisplay($form_display);
}