You are here

function profile_update_8010 in Profile 8

Update the status field.

File

./profile.install, line 219
Install, update and uninstall functions for the profile module.

Code

function profile_update_8010() {
  $definition_update_manager = \Drupal::entityDefinitionUpdateManager();
  $field_definition = $definition_update_manager
    ->getFieldStorageDefinition('status', 'profile');
  $field_definition
    ->setTranslatable(FALSE);
  $definition_update_manager
    ->updateFieldStorageDefinition($field_definition);
}