You are here

function _social_tagging_field_definitions_update in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_definitions_update()
  2. 10.3.x modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_definitions_update()
  3. 10.0.x modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_definitions_update()
  4. 10.1.x modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_definitions_update()
  5. 10.2.x modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_definitions_update()

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

2 calls to _social_tagging_field_definitions_update()
social_tagging_install in modules/social_features/social_tagging/social_tagging.install
Install the module.
social_tagging_update_8002 in modules/social_features/social_tagging/social_tagging.install
Toggle group index.

File

modules/social_features/social_tagging/social_tagging.install, line 75
Installation file for Social Tagging.

Code

function _social_tagging_field_definitions_update() {

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