public function display() : string {
        global $PAGE;
        $output = $PAGE->get_renderer('core_customfield');
        return $output->render(new field_data($this));
    }
public function display() : string {
        global $PAGE;
        $output = $PAGE->get_renderer('core_customfield');
        return $output->render(new field_data($this));
    }
public function display ( ) : string { global $ PAGE ; $ output = $ PAGE -> get_renderer ( 'core_customfield' ) ; return $ output -> render ( new field_data ( $ this ) ) ; }
Used by handlers to display data on various places.

@return string
Used by handlers to display data on various places .