Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TableMappingInterface.php

function TableMappingInterface::getFieldColumnName

Generates a column name for a field property.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition.

string $property_name: The name of the property.

Return value

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

1 method overrides TableMappingInterface::getFieldColumnName()
DefaultTableMapping::getFieldColumnName in core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php
Generates a column name for a field property.

File

core/lib/Drupal/Core/Entity/Sql/TableMappingInterface.php, line 108

Class

TableMappingInterface
Provides a common interface for mapping field columns to SQL tables.

Namespace

Drupal\Core\Entity\Sql

Code

public function getFieldColumnName(FieldStorageDefinitionInterface $storage_definition, $property_name);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal