The Entity API provides wrapper classes you may use to make dealing with the values of an entity's properties and fields easier. Wrappers make it easier to get and set the values of fields and properties as well as to programmatically retri

Entity metadata wrappers | Drupal.org

Submitted by michael on Thu, 01/01/2015 - 16:19

The Entity API provides wrapper classes you may use to make dealing with the values of
an entity's properties and fields easier. Wrappers make it easier to get and set the values
of fields and properties as well as to programmatically retrieve additional information
about these elements and iterate over lists of values in a consistent manner. For example
consider the following method of accessing the value of a field attached to a node. This is