public function EntityQueueUIController::addForm in Entityqueue 8
Returns a form to add a new subqeue.
Parameters
\Drupal\entityqueue\EntityQueueInterface $entity_queue: The queue this subqueue will be added to.
Return value
array The entity subqueue add form.
1 string reference to 'EntityQueueUIController::addForm'
File
- src/
Controller/ EntityQueueUIController.php, line 160
Class
- EntityQueueUIController
- Returns responses for Entityqueue UI routes.
Namespace
Drupal\entityqueue\ControllerCode
public function addForm(EntityQueueInterface $entity_queue) {
$subqueue = $this
->entityTypeManager()
->getStorage('entity_subqueue')
->create([
'queue' => $entity_queue
->id(),
]);
return $this
->entityFormBuilder()
->getForm($subqueue);
}