function _social_tagging_field_defenitions_update in Open Social 8.6
Same name and namespace in other branches
- 8.4 modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_defenitions_update()
- 8.5 modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_defenitions_update()
- 8.7 modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_defenitions_update()
Update the field definitions on install, or in an update hook.
2 calls to _social_tagging_field_defenitions_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 121 - Installation file for Social Tagging.
Code
function _social_tagging_field_defenitions_update() {
// Create field storage for the 'Highlight' base field.
\Drupal::entityTypeManager()
->clearCachedDefinitions();
\Drupal::service('entity.definition_update_manager')
->applyUpdates();
}