I'm probably missing this, but is there a way to programmatically get the entities of an entityqueue? entityqueue_queue_load doesn't return information about the entities it contains. What am I missing?

Comments

pilch57 created an issue. See original summary.

pilch57’s picture

Leaving the answer here for anyone else.

entity_load_single('entityqueue_subqueue', $id);

pilch57’s picture

Status: Active » Closed (fixed)
tripper54’s picture

Status: Closed (fixed) » Active

I'm still confused about this.

I can load a subqueue using

entity_load_single('entityqueue_subqueue', $id);

But how do I get the value of $id, given that I only know the machine name of the queue I'm working with, and the subqueue_id will be different in different environments?

tripper54’s picture

Status: Active » Closed (fixed)

And the answer to my own question:

entityqueue_subqueue_load('queue_machine_name');