_field_create_entity_from_ids($ids)
Assembles a partial entity structure with initial IDs.
Parameters
object $ids: An object with the properties entity_type (required), entity_id (required), revision_id (optional) and bundle (optional).
Return value
\Drupal\Core\Entity\EntityInterface An entity, initialized with the provided IDs.
File
core/modules/field/field.module, line 285 Attach custom data fields to Drupal entities.
Code
function _field_create_entity_from_ids($ids) {
$id_properties =