function DefaultTableMapping::requiresDedicatedTableStorage
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::requiresDedicatedTableStorage()
- 8.9.x core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::requiresDedicatedTableStorage()
- 11.x 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 - DefaultTableMapping::getFieldColumnName in core/
lib/ Drupal/ Core/ Entity/ Sql/ DefaultTableMapping.php
File
-
core/
lib/ Drupal/ Core/ Entity/ Sql/ DefaultTableMapping.php, line 522
Class
- DefaultTableMapping
- Defines a default table mapping class.
Namespace
Drupal\Core\Entity\SqlCode
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.