function responsive_favicons_update_8001 in Responsive Favicons 8
Default the new config path_type if not already set.
File
- ./
responsive_favicons.install, line 68 - Responsive favicons install file.
Code
function responsive_favicons_update_8001() {
$config = \Drupal::service('config.factory')
->getEditable('responsive_favicons.settings');
if (empty($config
->get('path_type'))) {
$config
->set('path_type', 'upload');
$config
->save();
}
}