You are here

public function DefaultTableMapping::requiresDedicatedTableStorage in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::requiresDedicatedTableStorage()
  2. 10 core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::requiresDedicatedTableStorage()

Checks whether the given field has to be stored in a dedicated table.

Parameters

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

Return value

bool TRUE if the field has to be stored in a dedicated table, FALSE otherwise.

2 calls to DefaultTableMapping::requiresDedicatedTableStorage()
DefaultTableMapping::getAllColumns in core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php
Gets a list of all database columns for a given table.
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/DefaultTableMapping.php, line 512

Class

DefaultTableMapping
Defines a default table mapping class.

Namespace

Drupal\Core\Entity\Sql

Code

public function requiresDedicatedTableStorage(FieldStorageDefinitionInterface $storage_definition) {
  return !$storage_definition
    ->hasCustomStorage() && !$this
    ->allowsSharedTableStorage($storage_definition);
}