You are here

function block_content_update_8300 in Drupal 8

Fix the block_content entity type to specify its revision data table.

File

core/modules/block_content/block_content.install, line 69
Install, update and uninstall functions for the block_content module.

Code

function block_content_update_8300() {
  $definition_update_manager = \Drupal::entityDefinitionUpdateManager();
  $entity_type = $definition_update_manager
    ->getEntityType('block_content');
  $entity_type
    ->set('revision_data_table', 'block_content_field_revision');
  $definition_update_manager
    ->updateEntityType($entity_type);
}