diff --git a/tide_site.install b/tide_site.install index be10108..9d8b1da 100644 --- a/tide_site.install +++ b/tide_site.install @@ -683,7 +683,7 @@ function tide_site_update_8026() { foreach ($configs as $config => $type) { $config_read = _tide_read_config($config, $config_location, TRUE); $storage = \Drupal::entityTypeManager()->getStorage($type); - $id = substr($config, strrpos($config, '.') + 1); + $id = $storage->getIDFromConfigName($config, $storage->getEntityType()->getConfigPrefix()); if ($storage->load($id) == NULL) { $config_entity = $storage->createFromStorageRecord($config_read); $config_entity->save();