You are here

function asset_injector_update_8201 in Asset Injector 8.2

Config objects from asset_injector.asset_injector_css to asset_injector.css.

File

./asset_injector.install, line 50
Contains install and uninstall hooks.

Code

function asset_injector_update_8201() {
  $query = "UPDATE {config} SET name = REPLACE(name, 'asset_injector.asset_injector_css', 'asset_injector.css') WHERE name LIKE 'asset_injector.asset_injector_css%'";
  \Drupal::database()
    ->query($query);
  $query = "UPDATE {config} SET name = REPLACE(name, 'asset_injector.asset_injector_js', 'asset_injector.js') WHERE name LIKE 'asset_injector.asset_injector_js%'";
  \Drupal::database()
    ->query($query);
}