function verf_get_filter in Views Entity Reference Filter 8
Gets an array for views.
1 call to verf_get_filter()
- verf_views_data_alter in ./
verf.module - Implements hook_views_data_alter().
File
- ./
verf.module, line 94 - Contains hook implementations.
Code
function verf_get_filter($label, $column_name, $table_name, $field_name, $entity_type_id, $target_entity_type_id, $group = 'verf', $help = '') {
return [
'title' => t('@label (VERF selector)', [
'@label' => $label,
]),
'group' => $group,
'help' => $help,
'filter' => [
'field' => $column_name,
'table' => $table_name,
'id' => 'verf',
'additional fields' => [],
'field_name' => $field_name,
'entity_type' => $entity_type_id,
'verf_target_entity_type_id' => $target_entity_type_id,
'allow empty' => TRUE,
],
];
}