Run missing entity Schema updates
⚠️ WARNING: Potential data loss. Use with caution.
Issue:
When you see the "Entity type needs to be updated" message on the Drupal status page, usually it's not possible to solve it without custom code.
Solution:
Use this update hook in your custom module to force entity definition updates on next deployment.
Conclusion:
This is basically "drush entup", which was removed because it lead to data deletion in certain instances.
Beware:
Only use with caution and verify if this really yields the result you wanted - especially test for potential data loss.
Docs for the service if you want to know more can be found on drupal.org.