TableMappingInterface::getFieldColumnName

public TableMappingInterface::getFieldColumnName(FieldStorageDefinitionInterface $storage_definition, $property_name) 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. File core/lib/Drupal/Core/Entity/Sql/TableMap

TableMappingInterface::getExtraColumns

public TableMappingInterface::getExtraColumns($table_name) Gets a list of extra database columns, which store denormalized data. These database columns do not belong to any entity fields. Any normalized data that is stored should be associated with an entity field. Parameters string $table_name: The name of the table to return the columns for. Return value string[] An array of column names for the given table. File core/lib/Drupal/Core/Entity/Sql/TableMappingInterface.php, line 87 Class T

TableMappingInterface::DELTA

A property that represents delta used in entity query conditions. File core/lib/Drupal/Core/Entity/Sql/TableMappingInterface.php, line 25 Class TableMappingInterface Provides a common interface for mapping field columns to SQL tables. Namespace Drupal\Core\Entity\Sql Code const DELTA = '%delta';

TableMappingInterface::getAllColumns

public TableMappingInterface::getAllColumns($table_name) Gets a list of all database columns for a given table. Parameters string $table_name: The name of the table to return the columns for. Return value string[] An array of database column names for this table. Both field columns and extra columns are returned. File core/lib/Drupal/Core/Entity/Sql/TableMappingInterface.php, line 45 Class TableMappingInterface Provides a common interface for mapping field columns to SQL tables. Namesp

TableMappingInterface

Provides a common interface for mapping field columns to SQL tables. Warning: using methods provided here should be done only when writing code that is explicitly targeting a SQL-based entity storage. Typically this API is used by SQL storage classes, or other SQL-specific code like the Views integration code for the Entity SQL storage. Another example of legal usage of this API is when needing to write a query that \Drupal::entityQuery() does not support. Always retrieve entity identifiers and

TableMappingInterface::getColumnNames

public TableMappingInterface::getColumnNames($field_name) Gets a mapping of field columns to database columns for a given field. Parameters string $field_name: The name of the entity field to return the column mapping for. Return value string[] The keys of this array are the keys of the array returned by FieldStorageDefinitionInterface::getColumns() while the respective values are the names of the database columns for this table mapping. File core/lib/Drupal/Core/Entity/Sql/TableMappingInterf

Table::preRenderTable

public static Table::preRenderTable($element) #pre_render callback to transform children of an element of #type 'table'. This function converts sub-elements of an element of #type 'table' to be suitable for table.html.twig: The first level of sub-elements are table rows. Only the #attributes property is taken into account. The second level of sub-elements is converted into columns for the corresponding first-level table row. Simple example usage: $form['table'] = array( '#type' => 'table

Table::processTable

public static Table::processTable(&$element, FormStateInterface $form_state, &$complete_form) #process callback for #type 'table' to add tableselect support. Parameters array $element: An associative array containing the properties and children of the table element. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. array $complete_form: The complete form structure. Return value array The processed element. File core/lib/Drupal/Core/Render/Element/Table.p

Table::validateTable

public static Table::validateTable(&$element, FormStateInterface $form_state, &$complete_form) #element_validate callback for #type 'table'. Parameters array $element: An associative array containing the properties and children of the table element. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. array $complete_form: The complete form structure. File core/lib/Drupal/Core/Render/Element/Table.php, line 257 Class Table Provides a render element for

Table::valueCallback

public static Table::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to assign