function entity_update_get_entity_definition_update_manager in Entity Update 8
Same name and namespace in other branches
- 2.0.x entity_update.module \entity_update_get_entity_definition_update_manager()
Get entity definition update manager implemented by EntityUpdate.
Return value
\Drupal\entity_update\SubEntityDefinitionUpdateManager Entity definition update manager.
1 call to entity_update_get_entity_definition_update_manager()
- EntityUpdate::safeUpdateEntityType in src/
EntityUpdate.php - Update an entity type.
File
- ./
entity_update.module, line 126 - Entity update module (entity_update).
Code
function entity_update_get_entity_definition_update_manager() {
// TODO : Replace entityManager() by entityTypeManager's method.
$entity_manager = \Drupal::entityManager();
return new SubEntityDefinitionUpdateManager($entity_manager);
}