public function EntitySubqueue::reverseItems in Entityqueue 8
Reverses the items of this subqueue.
Return value
$this
Overrides EntitySubqueueInterface::reverseItems
File
- src/
Entity/ EntitySubqueue.php, line 317
Class
- EntitySubqueue
- Defines the EntitySubqueue entity class.
Namespace
Drupal\entityqueue\EntityCode
public function reverseItems() {
$subqueue_items = $this
->get('items')
->getValue();
$this
->get('items')
->setValue(array_reverse($subqueue_items));
return $this;
}