You are here

public function LearningPathController::addIndex in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/Controller/LearningPathController.php \Drupal\opigno_module\Controller\LearningPathController::addIndex()

Add index.

1 string reference to 'LearningPathController::addIndex'
opigno_module.routing.yml in ./opigno_module.routing.yml
opigno_module.routing.yml

File

src/Controller/LearningPathController.php, line 25

Class

LearningPathController
Class LearningPathController.

Namespace

Drupal\opigno_module\Controller

Code

public function addIndex() {
  $opigno_module = OpignoModule::create();
  $form = \Drupal::service('entity.form_builder')
    ->getForm($opigno_module);
  return $form;
}