hospital_management-8.x-1.x-dev/web/modules/hms/hms_patients/src/Controller/PatientsController.php
web/modules/hms/hms_patients/src/Controller/PatientsController.php
<?php
namespace Drupal\hms_patients\Controller;
use Drupal\Core\Controller\ControllerBase;
/**
* Class PatientsController.
*/
class PatientsController extends ControllerBase {
/**
* Addpatient.
*
* @return string
* Return Hello string.
*/
public function addPatient() {
$entity = User::create();
$user_form = \Drupal::service('entity.form_builder')->getForm($entity, 'patient');
return $user_form;
}
}
