public function LearningPathMembershipController::createUserFormModal in Opigno Learning path 8
Same name and namespace in other branches
- 3.x src/Controller/LearningPathMembershipController.php \Drupal\opigno_learning_path\Controller\LearningPathMembershipController::createUserFormModal()
Callback for opening the create members modal form.
1 string reference to 'LearningPathMembershipController::createUserFormModal'
File
- src/
Controller/ LearningPathMembershipController.php, line 75
Class
- LearningPathMembershipController
- Controller for the actions related to LP membership.
Namespace
Drupal\opigno_learning_path\ControllerCode
public function createUserFormModal() {
$form = $this->formBuilder
->getForm('Drupal\\opigno_learning_path\\Form\\LearningPathCreateUserForm');
$command = new OpenModalDialogCommand($this
->t('2/2 create a new user'), $form);
$response = new AjaxResponse();
$response
->addCommand($command);
return $response;
}