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