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

Merge FieldItem::insert() and FieldItem::update() on fields into preSave()

$
0
0

FieldItem::insert() and FieldItem::update() are left-overs of the previous field.module API, but do not make much sense in the entity context as insert/update are not post-storage operation as they are usually for entities, but pre-save operations as well.

Let's fix that by making use of $entity->isNew() as in the other entity preSave() method callbacks also.

Postponed on #1969728: Implement Field API "field types" as TypedData Plugins.


Viewing all articles
Browse latest Browse all 294474

Trending Articles



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