class PropertyBase in Form Builder 7.2
Hierarchy
- class \Drupal\form_builder\PropertyBase implements PropertyInterface
Expanded class hierarchy of PropertyBase
2 files declare their use of PropertyBase
- Property.php in examples/
src/ Property.php - Property.php in modules/
webform/ src/ Property.php
File
- src/
PropertyBase.php, line 5
Namespace
Drupal\form_builderView source
class PropertyBase implements PropertyInterface {
protected $property;
protected $params;
protected $formTypeName;
/**
* {@inheritdoc}
*/
public function __construct($property, $params, $form_type_name) {
$this->property = $property;
$this->params = $params;
$this->formTypeName = $form_type_name;
}
/**
* {@inheritdoc}
*/
public function submit($form, &$form_state) {
if (isset($this->params['submit'])) {
foreach ($this->params['submit'] as $function) {
if (function_exists($function)) {
$function($form, $form_state);
}
}
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PropertyBase:: |
protected | property | 1 | |
PropertyBase:: |
protected | property | 1 | |
PropertyBase:: |
protected | property | 1 | |
PropertyBase:: |
public | function |
Submit handler for the editing form(). Overrides PropertyInterface:: |
1 |
PropertyBase:: |
public | function |
Construct a new instance of this property class. Overrides PropertyInterface:: |
1 |