class Element in Form Builder 7.2
Same name in this branch
- 7.2 examples/src/Element.php \Drupal\form_builder_examples\Element
- 7.2 modules/webform/src/Element.php \Drupal\form_builder_webform\Element
Form builder element for the example form type.
Hierarchy
- class \Drupal\form_builder\ElementBase implements ElementInterface
- class \Drupal\form_builder_examples\Element
Expanded class hierarchy of Element
1 file declares its use of Element
- form_builder_examples.module in examples/
form_builder_examples.module - form_builder_examples.module Sample implementations of form_builder.
File
- examples/
src/ Element.php, line 10
Namespace
Drupal\form_builder_examplesView source
class Element extends ElementBase {
/**
* {@inheritdoc}
*/
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Element:: |
public | function |
Get the configuration form for this element. Overrides ElementInterface:: |
|
ElementBase:: |
protected | property | ||
ElementBase:: |
protected | property | ||
ElementBase:: |
protected | property | ||
ElementBase:: |
protected | property | ||
ElementBase:: |
protected | function | Add our pre-render function to the element-array. | |
ElementBase:: |
public | function |
Submit handler for the configuration form. Overrides ElementInterface:: |
1 |
ElementBase:: |
public | function |
Get a list of properties available for this element. Overrides ElementInterface:: |
|
ElementBase:: |
public | function |
Get a list of properties that are supported in any way by this element. Overrides ElementInterface:: |
|
ElementBase:: |
public | function | 1 | |
ElementBase:: |
public | function | ||
ElementBase:: |
public | function |
(Re-)Render an element. Overrides ElementInterface:: |
1 |
ElementBase:: |
protected | function | Set the value of a property. | 1 |
ElementBase:: |
public | function |
Get a human-readable title for this form element. Overrides ElementInterface:: |
1 |
ElementBase:: |
public | function |
Overrides ElementInterface:: |