public function FlexiformFormEntityPartyDataSet::getEntity in Flexiform 7
Get the entity for the form.
Return value
A loaded or created entity object ready for use in the form.
Overrides FlexiformFormEntityBase::getEntity
File
- includes/
form_entity/ party_data_set.form_entity.inc, line 15 - Contains class for a basic entity getter.
Class
- FlexiformFormEntityPartyDataSet
- Form entity for attached entities.
Code
public function getEntity() {
parent::getEntity();
$settings = $this->settings;
// Get the party entity.
if ($party = $this
->getParam('party')) {
$data_set_name = $this->getter['data_set_name'];
return $party
->getDataSetController($data_set_name)
->getEntity(0, TRUE);
}
return FALSE;
}