public function Property::__construct in Form Builder 7.2
Construct a new instance of this property class.
Parameters
string $property: Name of the property to be manipulated by this object.
array $params: Additional parameters passed to hook_form_builder_properties().
Overrides PropertyBase::__construct
File
- modules/
webform/ src/ Property.php, line 14
Class
Namespace
Drupal\form_builder_webformCode
public function __construct($property, $params, $form_type_name) {
$params += array(
'storage_parents' => array(
$property,
),
);
parent::__construct($property, $params, $form_type_name);
$this->storageParents = $params['storage_parents'];
}