public function DefaultTableMapping::allowsSharedTableStorage
public DefaultTableMapping::allowsSharedTableStorage(FieldStorageDefinitionInterface $storage_definition)
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 dedicated table, FALSE otherwise.
File
- core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 274
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(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Sql!DefaultTableMapping.php/function/DefaultTableMapping::allowsSharedTableStorage/8.1.x