        $mform->addElement('advcheckbox', '{{ id }}', get_string('{{ id }}', '{{ langCategory }}'), $text, $attributes, $values);
        $mform->setType('{{ id }}', PARAM_BOOL);
{% include 'form/form-common-element.twig' %}