protected function EntityViewsData::processViewsDataForListInteger in Entity API 8
Corrects the views data for list_integer base fields.
Based on options_field_views_data().
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.
1 call to EntityViewsData::processViewsDataForListInteger()
- EntityViewsData::processViewsDataForListFloat in src/
EntityViewsData.php - Corrects the views data for list_float base fields.
File
- src/
EntityViewsData.php, line 293
Class
- EntityViewsData
- Provides improvements to core's generic views integration for entities.
Namespace
Drupal\entityCode
protected function processViewsDataForListInteger($table, FieldDefinitionInterface $field_definition, array &$views_field, $field_column_name) {
if ($field_column_name == 'value') {
$views_field['filter']['id'] = 'list_field';
$views_field['argument']['id'] = 'number_list_field';
}
}