I am doing some development in moodle 3.7 for a new admin tool plugin. In this plugin I am generating a page from a somewhat complex custom made .mustache template. This template contains a number of values that are defined and managed within it, that I want to access once a submit button is pressed.
The issue I am running into is that I am unable to access these submitted values that are defined in the template. I can see their values in debugging under $form->_form->_submitValues but I cannot get to them due to _form being a protected variable of $form. I called $form->get_data(), but that only gave me access to the elements that I defined in php, not in the template. I'm not sure if this is the right place to ask this question, but if anyone has any help they could give me on a path forward it would be much appreciated.
I am adding the template to the page using the function:
Please let me know any other information you may need.