You are here

public function HiddenElement::configurationForm in Form Builder 7.2

Get the configuration form for this element.

Overrides Element::configurationForm

File

modules/webform/src/HiddenElement.php, line 13

Class

HiddenElement
Special behaviour for hidden elements.

Namespace

Drupal\form_builder_webform

Code

public function configurationForm($form, &$form_state) {
  $form = parent::configurationForm($form, $form_state);

  // Configure default value as textarea to allow for more data.
  $form['default_value']['#type'] = 'textarea';

  // Add configuration for $component['extra']['hidden_type'].
  $display['#form_builder']['property_group'] = 'display';
  $e = webform_component_invoke('hidden', 'edit', $this->element['#webform_component']);
  $form['hidden_type'] = $e['display']['hidden_type'] + $display;
  return $form;
}