You are here

class PropertyOptions in Form Builder 7.2

Special handling for $component['options'].

Hierarchy

Expanded class hierarchy of PropertyOptions

1 file declares its use of PropertyOptions
form_builder_webform.module in modules/webform/form_builder_webform.module
Form Builder integration for the Webform module.

File

modules/webform/src/PropertyOptions.php, line 8

Namespace

Drupal\form_builder_webform
View source
class PropertyOptions extends Property {
  public function submit($form, &$form_state) {

    // Webform needs the options to be saved as text.
    $options = $form_state['values']['options']['options_field'];
    parent::submit($form, $form_state);
    $form_state['values']['options'] = $options;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Property::$storageParents protected property
Property::form public function Generate form-API elements for editing this property.
Property::getValue public function Read the value from a component array.
Property::setValue public function 2
Property::__construct public function Construct a new instance of this property class. Overrides PropertyBase::__construct
PropertyBase::$formTypeName protected property 1
PropertyBase::$params protected property 1
PropertyBase::$property protected property 1
PropertyOptions::submit public function Submit handler for the editing form(). Overrides PropertyBase::submit