protected function OrderReportViewsData::processViewsDataForCreated in Commerce Reporting 8
Corrects the views data for commerce_price base fields.
Parameters
string $table: The table name.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
array $views_field: The views field data.
string $field_column_name: The field column being processed.
File
- src/
OrderReportViewsData.php, line 22
Class
Namespace
Drupal\commerce_reportsCode
protected function processViewsDataForCreated($table, FieldDefinitionInterface $field_definition, array &$views_field, $field_column_name) {
$views_field['field']['id'] = 'commerce_reports_report_date_field';
$views_field['sort']['id'] = 'commerce_reports_date';
}