function EntityExampleBasicController::create
Create and return a new entity_example_basic entity.
Overrides EntityExampleBasicControllerInterface::create
File
-
entity_example/
entity_example.module, line 544
Class
- EntityExampleBasicController
- EntityExampleBasicController extends DrupalDefaultEntityController.
Code
public function create() {
$entity = new stdClass();
$entity->type = 'entity_example_basic';
$entity->basic_id = 0;
$entity->bundle_type = 'first_example_bundle';
$entity->item_description = '';
return $entity;
}