public function FlexiformElementEntityProperty::__construct in Flexiform 7
Overrides FlexiformElement::__construct().
Overrides FlexiformElement::__construct
File
- includes/
element/ property.element.inc, line 39 - Contains class for the entity property elements.
Class
- FlexiformElementEntityProperty
- Class to add an element for entity properties.
Code
public function __construct($flexiform, $settings, $element_namespace = '') {
parent::__construct($flexiform, $settings, $element_namespace);
$this->property = $this->element_info['property'];
$this->propertyInfo = $this
->wrapper()
->getPropertyInfo($this->property);
$this->dataType = $this->propertyInfo['type'];
if ($list_type = entity_property_list_extract_type($this->dataType)) {
$this->dataType = $list_type;
$this->isList = TRUE;
}
}