Contribution Date
Technology
Contribution Project
Contribution Details
The solution mentioned in #16 works for me. Here is the short snippet.
Execute this code in an update hook.
$entity_type_manager = \Drupal::entityTypeManager();
$entity_type_manager->clearCachedDefinitions();
$entity_type_ids = [];
$change_summary = \Drupal::service('entity.definition_update_manager')->getChangeSummary();
foreach ($change_summary as $entity_type_id => $change_list) {
$entity_type = $entity_type_manager->getDefinition($entity_type_id);
\Drupal::entityDefinitionUpdateManager()->installEntityType($entity_type);
$entity_type_ids[] = $entity_type_id;
}
Issue Status
Needs Review
Contribution Issue Link
Contribution Link
Files count
0
Patches count
0