diff --git a/core/lib/Drupal/Core/Entity/Entity.php b/core/lib/Drupal/Core/Entity/Entity.php index fa1f8adcd5a1d88f92efc46257ddabc96de56ed4..2a4b199ee1c775304ba57c7a69859f97f11c8d08 100644 --- a/core/lib/Drupal/Core/Entity/Entity.php +++ b/core/lib/Drupal/Core/Entity/Entity.php @@ -159,7 +159,7 @@ public function label() { */ public function urlInfo($rel = 'canonical', array $options = []) { if ($this->id() === NULL) { - throw new EntityMalformedException(sprintf('The "%s" entity cannot have a URI as it does have an ID', $this->getEntityTypeId())); + throw new EntityMalformedException(sprintf('The "%s" entity cannot have a URI as it does not have an ID', $this->getEntityTypeId())); } // The links array might contain URI templates set in annotations.