summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-11-01 23:30:04 (GMT)
committerAlex Pott2015-11-01 23:30:04 (GMT)
commit63935833b0a3ac2a6df22cf9e1c42af529fa674a (patch)
treeb9f1610dc78203728e7392742232ad787d0f379a
parent2f5bf09b37b6101a95a4c5515b557ed8d66ddb87 (diff)
Issue #2602380 by jonhattan: Innacurate exception message: The "%s" entity cannot have a URI as it does have an ID
-rw-r--r--core/lib/Drupal/Core/Entity/Entity.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lib/Drupal/Core/Entity/Entity.php b/core/lib/Drupal/Core/Entity/Entity.php
index fa1f8ad..2a4b199 100644
--- a/core/lib/Drupal/Core/Entity/Entity.php
+++ b/core/lib/Drupal/Core/Entity/Entity.php
@@ -159,7 +159,7 @@ abstract class Entity implements EntityInterface {
*/
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.