function DefaultTableMapping::requiresDedicatedTableStorage

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::requiresDedicatedTableStorage()
  2. 8.9.x core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::requiresDedicatedTableStorage()
  3. 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 522

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.