Element.php in Form Builder 7.2
File
examples/src/Element.php
View source
<?php
namespace Drupal\form_builder_examples;
use Drupal\form_builder\ElementBase;
class Element extends ElementBase {
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;
}
}
Classes
Name |
Description |
Element |
Form builder element for the example form type. |