/**
  * Returns row data
  *
  * @param DocumentInterface $document
  * @param array $fields
  * @param array $options
  * @return array
  */
 public function getRowData(DocumentInterface $document, $fields, $options)
 {
     $row = [];
     foreach ($fields as $column) {
         if (isset($options[$column])) {
             $key = $document->getCustomAttribute($column)->getValue();
             if (isset($options[$column][$key])) {
                 $row[] = $options[$column][$key];
             } else {
                 $row[] = '';
             }
         } else {
             $row[] = $document->getCustomAttribute($column)->getValue();
         }
     }
     return $row;
 }