Skip to content
Snippets Groups Projects
Commit 597e55b7 authored by JD Leonard's avatar JD Leonard Committed by Aaron Bauman
Browse files

Issue #3217061 by jdleonard: Call to undefined method ContentEntityType::getLowercaseLabel()

parent 34192b8c
No related branches found
No related tags found
2 merge requests!40Added check for null value.,!16Resolve #3217061 "Call to undefined"
...@@ -41,7 +41,7 @@ class UniqueFieldsConstraintValidator extends ConstraintValidator { ...@@ -41,7 +41,7 @@ class UniqueFieldsConstraintValidator extends ConstraintValidator {
->load($id); ->load($id);
$url = $entity->toUrl(); $url = $entity->toUrl();
$message_replacements = [ $message_replacements = [
'@entity_type' => $entity_type->getLowercaseLabel(), '@entity_type' => $entity_type->getSingularLabel(),
':url' => $url->toString(), ':url' => $url->toString(),
'@label' => $entity->label(), '@label' => $entity->label(),
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment