You are here

function name_update_8202 in Name Field 8

Register the new name list format plugin.

File

./name.install, line 68
Standard installation functions for name.

Code

function name_update_8202() {

  // Create the entity type.
  \Drupal::entityTypeManager()
    ->clearCachedDefinitions();
  $name_list_format = \Drupal::entityTypeManager()
    ->getDefinition('name_list_format');
  \Drupal::entityDefinitionUpdateManager()
    ->installEntityType($name_list_format);
}