Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295636

Get rid of field_get_items()

$
0
0

It's now totally superseded by the new Entity API and it's support for field language.

field_get_items($entity, $field_name, $langcode) --> $entity->getTranslation($langcode)->$field_name
field_get_items($entity, $field_name) --> $entity->$field_name


Viewing all articles
Browse latest Browse all 295636


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>