function system_post_update_uninstall_entity_reference_module in Drupal 9
Uninstall entity_reference.
See also
https://www.drupal.org/project/drupal/issues/3111645
File
- core/
modules/ system/ system.post_update.php, line 83 - Post update functions for System.
Code
function system_post_update_uninstall_entity_reference_module() {
\Drupal::service('module_installer')
->uninstall([
'entity_reference',
]);
}