Skip to content
Snippets Groups Projects

Issue #3221004: Missing entities/profiles errors after installation of 5.0.0

1 file
+ 18
0
Compare changes
  • Side-by-side
  • Inline
+ 18
0
@@ -9,6 +9,24 @@ declare(strict_types=1);
use Drupal\backup_migrate\Entity\Schedule;
/**
* Install new backup and migrate entity types.
*/
function backup_migrate_update_9001() {
$new_entity_types = [
'backup_migrate_schedule',
'backup_migrate_destination',
'backup_migrate_settings',
'backup_migrate_source',
];
$entity_definition_update_manager = \Drupal::entityDefinitionUpdateManager();
$type_manager = \Drupal::entityTypeManager();
foreach ($new_entity_types as $entity_type) {
$entity_type = $type_manager->getDefinition($entity_type);
$entity_definition_update_manager->installEntityType($entity_type);
}
}
/**
* Migrate last_run information from raw KeyValue to State API.
*/
Loading