public function EntityBlockController::create in Entity Blocks 7
Create and return a new entity_block entity.
Overrides EntityBlockControllerInterface::create
File
- ./
entity_block.controller.inc, line 47 - The controller for the EntityBlock entity.
Class
- EntityBlockController
- The controller class for Entity Block.
Code
public function create() {
$entity = new stdClass();
$entity->type = 'entity_block';
$entity->bundle = 'entity_block';
$entity->title = '';
$entity->entity_block_id = 0;
$entity->target_entity_type = 'node';
$entity->target_bundle = '';
$entity->target_view_mode = '';
$entity->target_entity_id = '';
return $entity;
}