public function FlexiformFormEntityManagerDefault::setBaseEntity in Flexiform 7
Set the base entity.
Overrides FlexiformFormEntityManagerInterface::setBaseEntity
File
- includes/
flexiform.form_entity_manager.inc, line 128 - Contains the default entity manager for flexiforms.
Class
- FlexiformFormEntityManagerDefault
- Class that manages entities in a flexiform.
Code
public function setBaseEntity($entity, $namespace = 'base_entity') {
$this->entities[$namespace] = $entity;
$this->base_entity_key = $namespace;
return $this;
}