public function EntitySubqueue::setQueue in Entityqueue 8
Sets the subqueue's parent queue entity.
Parameters
\Drupal\entityqueue\EntityQueueInterface $queue: The parent queue entity.
Return value
$this
Overrides EntitySubqueueInterface::setQueue
File
- src/
Entity/ EntitySubqueue.php, line 141
Class
- EntitySubqueue
- Defines the EntitySubqueue entity class.
Namespace
Drupal\entityqueue\EntityCode
public function setQueue(EntityQueueInterface $queue) {
$this
->set('queue', $queue
->id());
return $this;
}