function _social_tagging_field_definitions_update in Open Social 8.9
Same name and namespace in other branches
- 8.8 modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_definitions_update()
- 10.3.x modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_definitions_update()
- 10.0.x modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_definitions_update()
- 10.1.x modules/social_features/social_tagging/social_tagging.install \_social_tagging_field_definitions_update()
- 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();
}