public SelectionWithAutocreateInterface::createNewEntity($entity_type_id, $bundle, $label, $uid)
Creates a new entity object that can be used as a valid reference.
string $entity_type_id: The entity type ID.
string $bundle: The bundle name.
string $label: The entity label.
int $uid: The entity owner ID, if the entity type supports it.
\Drupal\Core\Entity\EntityInterface An unsaved entity object.
public function createNewEntity($entity_type_id, $bundle, $label, $uid);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityReferenceSelection!SelectionWithAutocreateInterface.php/function/SelectionWithAutocreateInterface::createNewEntity/8.1.x