protected function get_version_option_for_filter($version) {
        if ($version->status == policy_version::STATUS_ACTIVE) {
            $a = (object)[
                'name' => format_string($version->revision),
                'status' => get_string('status'.policy_version::STATUS_ACTIVE, 'tool_policy'),
            ];
            return get_string('filterrevisionstatus', 'tool_policy', $a);
        } else {
            return get_string('filterrevision', 'tool_policy', $version->revision);
        }
    }
protected function get_version_option_for_filter($version) {
        if ($version->status == policy_version::STATUS_ACTIVE) {
            $a = (object)[
                'name' => format_string($version->revision),
                'status' => get_string('status'.policy_version::STATUS_ACTIVE, 'tool_policy'),
            ];
            return get_string('filterrevisionstatus', 'tool_policy', $a);
        } else {
            return get_string('filterrevision', 'tool_policy', $version->revision);
        }
    }
protected function get_version_option_for_filter ( $ version ) { if ( $ version -> status == policy_version :: STATUS_ACTIVE ) { $ a = ( object ) [ 'name' => format_string ( $ version -> revision ) , 'status' => get_string ( 'status' . policy_version :: STATUS_ACTIVE , 'tool_policy' ) , ] ; return get_string ( 'filterrevisionstatus' , 'tool_policy' , $ a ) ; } else { return get_string ( 'filterrevision' , 'tool_policy' , $ version -> revision ) ; } }
Creates an option name for the smart select for the version

@param \stdClass $version
@return string
Creates an option name for the smart select for the version