original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Creates an option name for the smart select for the version
  
  @param \stdClass $version
  @return string
docstring_tokens: Creates an option name for the smart select for the version