We'll need support for data structures based upon complex data types that are not identifiable (=entities). For registering and describing the sub-properties we'll need a central hook, e.g. hook_data_type_info(). Maybe, we want to add primitive data types also to the hook. (Primitive data types may not be extensible though).
Then, we need a helper class + interface for easy use of complex data types, such that $entity->get('field_image') is an instance of that class and comes with useful helpers for deriving sub-properties or info.
Core implementations:
* Add data types for field types, i.e. file fields, image fields and formatted text.
Comments
Comment #1
fagoComment #2
fagoWhat about that naming + code-locations ?
Comment #3
fagoalso see some ideas of pounard:
http://drupal.org/node/1346220#comment-5860830
Maybe, we can get some ideas from the PHPCR API/interfaces too.
Comment #4
fmizzell CreditAttribution: fmizzell commentedComment #5
fagoThat's already implemented in the current code, see the enity-property branch. For that there is PropertyContainerInterface as well as a PropertyTypeContainerInterface.
Comment #6
fmizzell CreditAttribution: fmizzell commentedComment #7.0
(not verified) CreditAttribution: commentedUpdated issue summary.