public function display_custom_fields_data(array $fieldsdata) : string {
        global $PAGE;
        $output = $PAGE->get_renderer('core_customfield');
        $content = '';
        foreach ($fieldsdata as $data) {
            $fd = new field_data($data);
            $content .= $output->render($fd);
        }

        return $content;
    }
public function display_custom_fields_data(array $fieldsdata) : string {
        global $PAGE;
        $output = $PAGE->get_renderer('core_customfield');
        $content = '';
        foreach ($fieldsdata as $data) {
            $fd = new field_data($data);
            $content .= $output->render($fd);
        }

        return $content;
    }
public function display_custom_fields_data ( array $ fieldsdata ) : string { global $ PAGE ; $ output = $ PAGE -> get_renderer ( 'core_customfield' ) ; $ content = '' ; foreach ( $ fieldsdata as $ data ) { $ fd = new field_data ( $ data ) ; $ content .= $ output -> render ( $ fd ) ; } return $ content ; }
Display visible custom fields.
This is a sample implementation that can be overridden in each handler.

@param data_controller[] $fieldsdata
@return string
Display visible custom fields . This is a sample implementation that can be overridden in each handler .