You are here

function _social_profile_field_definitions_update in Open Social 10.3.x

Same name and namespace in other branches
  1. 10.2.x modules/social_features/social_profile/social_profile.install \_social_profile_field_definitions_update()

Update the field definitions on install, or in an update hook.

2 calls to _social_profile_field_definitions_update()
social_profile_install in modules/social_features/social_profile/social_profile.install
Implements hook_install().
social_profile_update_8905 in modules/social_features/social_profile/social_profile.install
Update field definitions.

File

modules/social_features/social_profile/social_profile.install, line 492
Install, update and uninstall functions for the social_profile module.

Code

function _social_profile_field_definitions_update() {

  // Create field storage for the 'Profile Name' base field.
  \Drupal::entityTypeManager()
    ->clearCachedDefinitions();
  \Drupal::service('entity.definition_update_manager')
    ->applyUpdates();
}