Our usual return value for not found stuff is NULL, so ComplexDataInterface::getPropertyDefinition() and ContentEntityInterface::getFieldDefinition() should follow that behavior.
Postponed on #2002134: Move TypedData metadata introspection from data objects to definition objects to avoid conflicts.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | return-null-2202401-1.patch | 1.97 KB | berdir |
Comments
Comment #1
berdirshould be as easy as this...
Comment #2
fagoIt is!
Comment #3
alexpottCommitted ea8bca5 and pushed to 8.x. Thanks!