You are here

function asset_injector_update_8200 in Asset Injector 8.2

Change the entities from css_injector to asset_injector_css.

File

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

Code

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