public function OpignoModuleManagerController::addActivityToModule in Opigno module 3.x
Same name and namespace in other branches
- 8 src/Controller/OpignoModuleManagerController.php \Drupal\opigno_module\Controller\OpignoModuleManagerController::addActivityToModule()
Add existing activity to the module.
1 string reference to 'OpignoModuleManagerController::addActivityToModule'
File
- src/
Controller/ OpignoModuleManagerController.php, line 564
Class
- OpignoModuleManagerController
- Controller for all the actions of the Opigno module manager.
Namespace
Drupal\opigno_module\ControllerCode
public function addActivityToModule(OpignoModule $opigno_module, OpignoActivity $opigno_activity, $group = NULL) {
$opigno_module_controller = \Drupal::service('opigno_module.opigno_module');
$opigno_module_controller
->activitiesToModule([
$opigno_activity,
], $opigno_module, $group);
return new JsonResponse([], Response::HTTP_OK);
}