public function FlexiformDisplayUserCategory::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/ user_category.display.inc, line 40 - Define Display plugin for the add page.
Class
- FlexiformDisplayUserCategory
- Class for add page displays.
Code
public function getBaseEntity($context = array()) {
//@todo: Check the entity is the right bundle.
return $context['base_entity_id'];
}