protected function CivicrmEntityViewsData::processViewsDataForListString in CiviCRM Entity 8.3
Provides Views integration for list_string fields.
This does not provide arguments, as that required an alter against the entire Views data array, which is not possible here.
Parameters
string $table: The table the language field is added to.
\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.
See also
File
- src/
CivicrmEntityViewsData.php, line 215
Class
Namespace
Drupal\civicrm_entityCode
protected function processViewsDataForListString($table, FieldDefinitionInterface $field_definition, array &$views_field, $field_column_name) {
$views_field['filter']['id'] = 'list_field';
$views_field['filter']['field_name'] = $field_definition
->getName();
$views_field['argument']['id'] = 'string_list_field';
$views_field['argument']['field_name'] = $field_definition
->getName();
}