Skip to content
Snippets Groups Projects
Commit cd9e4d91 authored by enyug's avatar enyug Committed by Lee Rowlands
Browse files

Issue #3283504: Replace view filter with entity reference

parent 832b80d4
No related branches found
No related tags found
No related merge requests found
......@@ -210,6 +210,11 @@ function entity_hierarchy_field_views_data(FieldStorageConfigInterface $field_st
],
];
}
// Change to use entity reference filter instead of numeric.
if (\Drupal::service('plugin.manager.views.filter')->hasDefinition('entity_reference')) {
$data[$table_name][$field_name . '_target_id']['filter']['id'] = 'entity_reference';
}
}
return $data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment