function BlockContentStorageSchema::getSharedTableFieldSchema

Same name in other branches
  1. 10 core/modules/block_content/src/BlockContentStorageSchema.php \Drupal\block_content\BlockContentStorageSchema::getSharedTableFieldSchema()

Overrides SqlContentEntityStorageSchema::getSharedTableFieldSchema

File

core/modules/block_content/src/BlockContentStorageSchema.php, line 16

Class

BlockContentStorageSchema
Defines the block content schema handler.

Namespace

Drupal\block_content

Code

protected function getSharedTableFieldSchema(FieldStorageDefinitionInterface $storage_definition, $table_name, array $column_mapping) : array {
    $schema = parent::getSharedTableFieldSchema($storage_definition, $table_name, $column_mapping);
    $field_name = $storage_definition->getName();
    if ($table_name === $this->storage
        ->getDataTable() && $field_name === 'reusable') {
        $this->addSharedTableFieldIndex($storage_definition, $schema);
    }
    return $schema;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.