public function FlexiformDisplayEditPane::getBaseEntity in Flexiform 7
Get the base entity for a flexiform.
By default we just create a new entity.
Overrides FlexiformDisplayBase::getBaseEntity
File
- includes/
display/ edit_pane.display.inc, line 15 - Define Display plugin for the edit panels pane.
Class
- FlexiformDisplayEditPane
- Class for edit panel panes.
Code
public function getBaseEntity($context = array()) {
$base_entity = $context['base_entity']->data;
//@todo: Check the entity is the right bundle.
return $base_entity;
}