From 597e55b72cd0407662971a987ea58a22a72bbd28 Mon Sep 17 00:00:00 2001
From: jdleonard <jdleonard@80902.no-reply.drupal.org>
Date: Thu, 3 Jun 2021 12:38:42 +0000
Subject: [PATCH] Issue #3217061 by jdleonard: Call to undefined method
 ContentEntityType::getLowercaseLabel()

---
 .../Validation/Constraint/UniqueFieldsConstraintValidator.php   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/salesforce_mapping/src/Plugin/Validation/Constraint/UniqueFieldsConstraintValidator.php b/modules/salesforce_mapping/src/Plugin/Validation/Constraint/UniqueFieldsConstraintValidator.php
index 655cf243..e943bca5 100644
--- a/modules/salesforce_mapping/src/Plugin/Validation/Constraint/UniqueFieldsConstraintValidator.php
+++ b/modules/salesforce_mapping/src/Plugin/Validation/Constraint/UniqueFieldsConstraintValidator.php
@@ -41,7 +41,7 @@ class UniqueFieldsConstraintValidator extends ConstraintValidator {
         ->load($id);
       $url = $entity->toUrl();
       $message_replacements = [
-        '@entity_type' => $entity_type->getLowercaseLabel(),
+        '@entity_type' => $entity_type->getSingularLabel(),
         ':url' => $url->toString(),
         '@label' => $entity->label(),
       ];
-- 
GitLab