Problem/Motivation
When enabling or disabling entity types/bundles in the Mobile Native Share configuration form (/admin/config/services/mobile-native-share), the changes are not immediately reflected on the "Manage display" tabs of the respective content types.
The pseudo-field (extra field) provided by the module only appears or disappears after a manual full cache rebuild (`drush cr`), because the field definition discovery cache (entity_extra_field_info) is not invalidated upon saving the module settings.
Proposed resolution
Inject the entity_field.manager service into MobileNativeShareSettings and call $this->entityFieldManager->clearCachedFieldDefinitions(); inside the submitForm() method. This will clear the field definitions cache seamlessly without impacting frontend performance.
Issue fork mobile_native_share-3606876
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
fromme commentedFixed, released in 1.2.1