You are here

public function ReferenceDefaultTableMapping::requiresDedicatedTableStorage in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/src/ReferenceDefaultTableMapping.php \Drupal\bibcite_entity\ReferenceDefaultTableMapping::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.

Overrides DefaultTableMapping::requiresDedicatedTableStorage

File

modules/bibcite_entity/src/ReferenceDefaultTableMapping.php, line 18

Class

ReferenceDefaultTableMapping
Class ReferenceDefaultTableMapping.

Namespace

Drupal\bibcite_entity

Code

public function requiresDedicatedTableStorage(FieldStorageDefinitionInterface $storage_definition) {
  if ($storage_definition
    ->getName() === 'bibcite_citekey') {
    return TRUE;
  }
  return parent::requiresDedicatedTableStorage($storage_definition);
}