You are here

public function FlexiformFormEntityBase::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 FlexiformFormEntityInterface::getEntity

12 calls to FlexiformFormEntityBase::getEntity()
FlexiformFormEntityBaseEntity::getEntity in includes/form_entity/base_entity.form_entity.inc
Get the entity for the form.
FlexiformFormEntityCommerceOrderUser::getEntity in includes/form_entity/commerce_order_user.form_entity.inc
Get the entity for the form.
FlexiformFormEntityCurrentUser::getEntity in includes/form_entity/current_user.form_entity.inc
Get the entity for the form.
FlexiformFormEntityEntityReference::getEntity in includes/form_entity/entityreference.form_entity.inc
Get the entity for the form.
FlexiformFormEntityFieldCollection::getEntity in includes/form_entity/field_collection.form_entity.inc
Get the entity for the form.

... See full list

12 methods override FlexiformFormEntityBase::getEntity()
FlexiformFormEntityBaseEntity::getEntity in includes/form_entity/base_entity.form_entity.inc
Get the entity for the form.
FlexiformFormEntityCommerceOrderUser::getEntity in includes/form_entity/commerce_order_user.form_entity.inc
Get the entity for the form.
FlexiformFormEntityCurrentUser::getEntity in includes/form_entity/current_user.form_entity.inc
Get the entity for the form.
FlexiformFormEntityEntityReference::getEntity in includes/form_entity/entityreference.form_entity.inc
Get the entity for the form.
FlexiformFormEntityFieldCollection::getEntity in includes/form_entity/field_collection.form_entity.inc
Get the entity for the form.

... See full list

File

includes/form_entity/base.form_entity.inc, line 105
Contains class for a basic entity getter.

Class

FlexiformFormEntityBase
Default Form Entity Class for Managing a form Entity.

Code

public function getEntity() {
  if (isset($this->settings['save_on_submit']) && empty($this->settings['save_on_submit'])) {
    $this->manager
      ->skipOnSave($this->entity_namespace, TRUE);
  }
  return NULL;
}