function DefaultTableMapping::allowsSharedTableStorage
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::allowsSharedTableStorage()
- 10 core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::allowsSharedTableStorage()
- 11.x core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::allowsSharedTableStorage()
Checks whether the given field can be stored in a shared table.
Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition.
Return value
bool TRUE if the field can be stored in a shared table, FALSE otherwise.
2 calls to DefaultTableMapping::allowsSharedTableStorage()
- DefaultTableMapping::getFieldColumnName in core/
lib/ Drupal/ Core/ Entity/ Sql/ DefaultTableMapping.php - Generates a column name for a field property.
- DefaultTableMapping::requiresDedicatedTableStorage in core/
lib/ Drupal/ Core/ Entity/ Sql/ DefaultTableMapping.php - Checks whether the given field has to be stored in a dedicated table.
File
-
core/
lib/ Drupal/ Core/ Entity/ Sql/ DefaultTableMapping.php, line 509
Class
- DefaultTableMapping
- Defines a default table mapping class.
Namespace
Drupal\Core\Entity\SqlCode
public function allowsSharedTableStorage(FieldStorageDefinitionInterface $storage_definition) {
return !$storage_definition->hasCustomStorage() && $storage_definition->isBaseField() && !$storage_definition->isMultiple() && !$storage_definition->isDeleted();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.