Commit 63935833 authored by alexpott's avatar alexpott

Issue #2602380 by jonhattan: Innacurate exception message: The "%s" entity...

Issue #2602380 by jonhattan: Innacurate exception message: The "%s" entity cannot have a URI as it does have an ID
parent 2f5bf09b
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment