function _field_sql_storage_columnname

Generates a column name for a field data table.

Parameters

$name: The name of the field.

$column: The name of the column.

Return value

A string containing a generated column name for a field data table that is unique among all other fields.

14 calls to _field_sql_storage_columnname()
Field::click_sort in drupal/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php
Called to determine what to tell the clicksorter.
FieldSqlStorageTest::testFieldSqlStorageForeignKeys in drupal/core/modules/field/modules/field_sql_storage/lib/Drupal/field_sql_storage/Tests/FieldSqlStorageTest.php
Test foreign key support.
FieldSqlStorageTest::testFieldStorageDetails in drupal/core/modules/field/modules/field_sql_storage/lib/Drupal/field_sql_storage/Tests/FieldSqlStorageTest.php
Test the storage details.
field_sql_storage_field_storage_details in drupal/core/modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_details().
field_sql_storage_field_storage_load in drupal/core/modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_load().

... See full list

File

drupal/core/modules/field/modules/field_sql_storage/field_sql_storage.module, line 84
Default implementation of the field storage API.

Code

function _field_sql_storage_columnname($name, $column) {
  return in_array($column, field_reserved_columns()) ? $column : $name . '_' . $column;
}