// $node->field_image->fid->entity. In both cases, prepare the
// property definitions for the relationship. In the first case,
// also use the property definitions for column.
if ($key <
$count) { $relationship_specifier =
$specifiers[$key + 1
];
$propertyDefinitions =
$field_storage->
getPropertyDefinitions();
// Prepare the next index prefix.
$next_index_prefix = "
$relationship_specifier.
$column";
} } $table =
$this->
ensureFieldTable($index_prefix,
$field_storage,
$type,
$langcode,
$base_table,
$entity_id_field,
$field_id_field,
$delta);
$sql_column =
$table_mapping->
getFieldColumnName($field_storage,
$column);
} // The field is stored in a shared table.
else { // ensureEntityTable() decides whether an entity property will be
// queried from the data table or the base table based on where it
// finds the property first. The data table is preferred, which is why
// it gets added before the base table.
$entity_tables =
[];
$revision_table = NULL;
if ($query_revisions) {