original_string: public function getSource()
      {
          $field = $this
              ->getForm()
              ->Fields()
              ->dataFieldByName($this->country_field);
  
          if (empty($field) || empty($field->Value())) {
              $locale = strtoupper(Locale::getRegion(i18n::get_locale()));
          } else {
              $locale = $field->Value();
          }
  
          return $this
              ->getList($locale)
              ->map("Code", "Name")
              ->toArray();
      }
code: public function getSource()
      {
          $field = $this
              ->getForm()
              ->Fields()
              ->dataFieldByName($this->country_field);
  
          if (empty($field) || empty($field->Value())) {
              $locale = strtoupper(Locale::getRegion(i18n::get_locale()));
          } else {
              $locale = $field->Value();
          }
  
          return $this
              ->getList($locale)
              ->map("Code", "Name")
              ->toArray();
      }
code_tokens: public function getSource ( ) { $ field = $ this -> getForm ( ) -> Fields ( ) -> dataFieldByName ( $ this -> country_field ) ; if ( empty ( $ field ) || empty ( $ field -> Value ( ) ) ) { $ locale = strtoupper ( Locale :: getRegion ( i18n :: get_locale ( ) ) ) ; } else { $ locale = $ field -> Value ( ) ; } return $ this -> getList ( $ locale ) -> map ( "Code" , "Name" ) -> toArray ( ) ; }
docstring: Overwrite default get source to return
  custom list of regions
  
  @return array|ArrayAccess
docstring_tokens: Overwrite default get source to return custom list of regions