You are here

public function FlexiformBuilder::getFormEntity in Flexiform 7

Get a form entity.

Parameters

$namespace: The namespace of the entity required.

Return value

The entity with that namespace.

1 call to FlexiformBuilder::getFormEntity()
FlexiformBuilder::getCtoolsContexts in includes/flexiform.builder.inc
Get an array of ctools context for the flexiform.
1 method overrides FlexiformBuilder::getFormEntity()
FlexiformBuilderFlexiform::getFormEntity in includes/builder/flexiform.builder.inc
Get a form entity.

File

includes/flexiform.builder.inc, line 136
Specify builder classes for flexiforms.

Class

FlexiformBuilder
Base class for flexiform builders.

Code

public function getFormEntity($namespace, &$state = array()) {
  return $namespace == 'base_entity' ? $this->base_entity : FALSE;
}