function tft_update_8003 in Taxonomy File Tree 8
Update tft_file field settings.
File
- ./
tft.install, line 51 - Install, update and uninstall functions for the TFT module.
Code
function tft_update_8003() {
$config_path = drupal_get_path('module', 'tft') . '/config/optional';
$storage = new FileStorage($config_path);
$config_storage = \Drupal::service('config.storage');
$data = $storage
->read('field.storage.media.tft_file');
$config_storage
->write('field.storage.media.tft_file', $data);
}