],
];
return $schema;
} /**
* {@inheritdoc}
*/
protected function getSharedTableFieldSchema(FieldStorageDefinitionInterface
$storage_definition,
$table_name, array
$column_mapping) { $schema = parent::
getSharedTableFieldSchema($storage_definition,
$table_name,
$column_mapping);
$field_name =
$storage_definition->
getName();
if ($table_name == 'taxonomy_term_field_data'
) { // Remove unneeded indexes.
unset($schema['indexes'
]['taxonomy_term_field__vid__target_id'
]);
unset($schema['indexes'
]['taxonomy_term_field__description__format'
]);
switch ($field_name) { case 'weight':
// Improves the performance of the taxonomy_term__tree index defined
// in getEntitySchema().