Skip to content
Snippets Groups Projects

Issue #3522876: BundleConfigImportValidate error message when entities exist...

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -65,7 +65,7 @@ public function onConfigImporterValidate(ConfigImporterEvent $event) {
@@ -65,7 +65,7 @@ public function onConfigImporterValidate(ConfigImporterEvent $event) {
if (!empty($entity_ids)) {
if (!empty($entity_ids)) {
$entity = $this->entityTypeManager->getStorage($entity_type_id)->load($bundle_id);
$entity = $this->entityTypeManager->getStorage($entity_type_id)->load($bundle_id);
$event->getConfigImporter()
$event->getConfigImporter()
->logError($this->t('Entities exist of type %entity_type and %bundle_label %bundle. These entities need to be deleted before importing.', [
->logError($this->t('The config import is trying to delete the bundle %bundle. Entities exist of type %entity_type and %bundle_label %bundle. These entities need to be deleted before importing.', [
'%entity_type' => $bundle_of_entity_type->getLabel(),
'%entity_type' => $bundle_of_entity_type->getLabel(),
'%bundle_label' => $bundle_of_entity_type->getBundleLabel(),
'%bundle_label' => $bundle_of_entity_type->getBundleLabel(),
'%bundle' => $entity->label(),
'%bundle' => $entity->label(),
Loading