public function DefaultTableMapping::requiresDedicatedTableStorage in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::requiresDedicatedTableStorage()
- 9 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 521
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);
}