public function edit_bulk_completion($form, $activities) {
        ob_start();
        $form->display();
        $formhtml = ob_get_contents();
        ob_end_clean();

        $data = (object)[
            'form' => $formhtml,
            'activities' => array_values($activities),
            'activitiescount' => count($activities),
        ];
        return parent::render_from_template('core_course/editbulkactivitycompletion', $data);
    }
public function edit_bulk_completion($form, $activities) {
        ob_start();
        $form->display();
        $formhtml = ob_get_contents();
        ob_end_clean();

        $data = (object)[
            'form' => $formhtml,
            'activities' => array_values($activities),
            'activitiescount' => count($activities),
        ];
        return parent::render_from_template('core_course/editbulkactivitycompletion', $data);
    }
public function edit_bulk_completion ( $ form , $ activities ) { ob_start ( ) ; $ form -> display ( ) ; $ formhtml = ob_get_contents ( ) ; ob_end_clean ( ) ; $ data = ( object ) [ 'form' => $ formhtml , 'activities' => array_values ( $ activities ) , 'activitiescount' => count ( $ activities ) , ] ; return parent :: render_from_template ( 'core_course/editbulkactivitycompletion' , $ data ) ; }
Renders the form for bulk editing activities completion

@param moodleform $form
@param array $activities
@return string
Renders the form for bulk editing activities completion