You are here

public function Element::configurationForm in Form Builder 7.2

Same name in this branch
  1. 7.2 examples/src/Element.php \Drupal\form_builder_examples\Element::configurationForm()
  2. 7.2 modules/webform/src/Element.php \Drupal\form_builder_webform\Element::configurationForm()

Get the configuration form for this element.

Overrides ElementInterface::configurationForm

File

examples/src/Element.php, line 15

Class

Element
Form builder element for the example form type.

Namespace

Drupal\form_builder_examples

Code

public function configurationForm($form, &$form_state) {
  $form['#_edit_element'] = $this->element;
  foreach ($this
    ->getProperties() as $property) {
    $form = array_merge($form, $property
      ->form($form_state, $this));
  }
  return $form;
}