public function RulesFormsElementWrapper::__construct in Rules Forms Support 7.2
Construct a new EntityStructureWrapper object.
Parameters
$type: The type of the passed data.
$data: Optional. The data to wrap.
$info: Used to for specifying metadata about the data and internally to pass info about properties down the tree. For specifying metadata known keys are:
- property info: An array of info about the properties of the wrapped data structure. It has to contain an array of property info in the same structure as used by hook_entity_property_info().
Overrides EntityStructureWrapper::__construct
File
- includes/
rules_forms.wrapper.inc, line 90 - Manages and Process Form structure.
Class
- RulesFormsElementWrapper
- Wrapper class for form element arrays.
Code
public function __construct($type, $data = NULL, $info = array()) {
$info += array(
'element info' => array(),
);
$info['element info'] += array(
'data type' => 'text',
);
parent::__construct($type, $data, $info);
}