function content_translation_update_8002

Clear field type plugin caches to fix image field translatability.

File

core/modules/content_translation/content_translation.install, line 53

Code

function content_translation_update_8002() {
    \Drupal::service('plugin.manager.field.field_type')->clearCachedDefinitions();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.