protected function get_display_text($tool, $text) {
        if ($tool->status != ENROL_INSTANCE_ENABLED) {
            return \html_writer::tag('span', $text, array('class' => 'dimmed_text'));
        }

        return $text;
    }
protected function get_display_text($tool, $text) {
        if ($tool->status != ENROL_INSTANCE_ENABLED) {
            return \html_writer::tag('span', $text, array('class' => 'dimmed_text'));
        }

        return $text;
    }
protected function get_display_text ( $ tool , $ text ) { if ( $ tool -> status != ENROL_INSTANCE_ENABLED ) { return \ html_writer :: tag ( 'span' , $ text , array ( 'class' => 'dimmed_text' ) ) ; } return $ text ; }
Returns text to display in the columns.

@param \stdClass $tool the tool
@param string $text the text to alter
@return string
Returns text to display in the columns .