Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Update a Drupal 8 entity definition without uninstall/reinstalling the module.
<?php
/**
* @file
* Install, update and uninstall functions for mymodule.
*/
/**
* Update the schema for my entity.
*/
function mymodule_update_8001() {
\Drupal::service('entity.definition_update_manager')->applyUpdates();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.