You are here

public function FlexiformFormEntityBaseEntity::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/base_entity.form_entity.inc, line 15
Contains class for a basic entity getter.

Class

FlexiformFormEntityBaseEntity
Form Entity Class for Managing a forms Base Entity.

Code

public function getEntity() {
  parent::getEntity();
  return $this->manager
    ->getBaseEntity();
}