Task/ReportFieldTypes.php
public function listFieldTypesOptions() {
    $field_types_data = $this->loadFieldTypeData();

    $return = [];
    foreach ($field_types_data as $field_type_id => $field_type_info) {
      $return[$field_type_id] = $field_type_info['label'];
    }

    return $return;
  }
public function listFieldTypesOptions() {
    $field_types_data = $this->loadFieldTypeData();

    $return = [];
    foreach ($field_types_data as $field_type_id => $field_type_info) {
      $return[$field_type_id] = $field_type_info['label'];
    }

    return $return;
  }
public function listFieldTypesOptions ( ) { $ field_types_data = $ this -> loadFieldTypeData ( ) ; $ return = [ ] ; foreach ( $ field_types_data as $ field_type_id => $ field_type_info ) { $ return [ $ field_type_id ] = $ field_type_info [ 'label' ] ; } return $ return ; }
Get a list of options for field types.

@return
An array of field types as options suitable for FormAPI.
Get a list of options for field types .