code: public function getOptionArray(array $data)
      {
          $options = array();
  
          foreach ($data as $value) {
              $options[] = array('value' => $value, 'label' => $value);
          }
  
          return $options;
      }
docs: Returns an option array where every element has its value and label filled in
  with elements from passed array
  
  @param array $data
  @return array