Contribution Date
Technology
Contribution Project
Contribution Details
Execute the following code in an update_hook or using drush ev. It will fix all the issues related to the Mismatched field definitions for all entities.
$entity_type_manager = \Drupal::entityTypeManager();
$entity_type_manager->clearCachedDefinitions();
$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);
}
Issue Status
Needs Review
Contribution Issue Link
Contribution Link
Files count
0
Patches count
0