Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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!