You are here

public function DefaultTableMapping::requiresDedicatedTableStorage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 can 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 286
Contains \Drupal\Core\Entity\Sql\DefaultTableMapping.

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);
}