. /** * Filter main class for the filter_pluginname plugin. * * @package filter_pluginname * @copyright Year, You Name * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ use filter_bibleversesnwt\bible; class filter_bibleversesnwt extends moodle_text_filter { function filter($text, array $options = []) { // Return the modified text. // return print_r($options,true).$text; // Debug to check content of options $bible = new bible("nl"); return $bible->parse($text); } }