Create a EntityQueueFieldItemList that extends Drupal\Core\Field\EntityReferenceFieldItemList

> we keep using an entity reference field for referencing entities from a subqueue, but with a twist: we define it as a computed field, which means we will provide a special item list class that extends Drupal\Core\Field\EntityReferenceFieldItemList and which will allow us to take over the loading of referenced entities (e.g. we can have a dedicated method on our custom list class that provides the "give me the first 10 items in the queue" functionality)

CommentFileSizeAuthor
#1 create_a-2489506-1.patch606 bytesgnuget
#1 entitqueue_list.png33.94 KBgnuget

Comments

gnuget’s picture

Assigned: Unassigned » gnuget
Status: Active » Needs work
StatusFileSize
new33.94 KB
new606 bytes

I'm not sure how to complete this ticket but this is my first try.

It's only the empty class and Drupal can detect it:

I don't know what else do, I will leave it as needs works but if someone can point me in the right direction or what is the next step on this I will be happy to continue working on this. :-)

amateescu’s picture

You can see more info about the purpose of this field item list class in this comment #2232917-7: Drupal 8 Version of Entityqueue and #11 in the same issue :)