Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
From entity_views_data():
// Add tables based upon data selection "queries" for all entity types.
foreach (entity_get_info() as $type => $info) {
$table = entity_views_table_definition($type);
if ($table) {
$data['entity_' . $type] = $table;
}
// Generally expose properties marked as 'entity views field'.
$data['views_entity_' . $type] = array();
foreach (entity_get_all_property_info($type) as $key => $property) {
if (!empty($property['entity views field'])) {
entity_views_field_definition($key, $property, $data['views_entity_' . $type]);
}
}
}
I don't see why this should clobber existing data that the views controller class could be exposing for 'views_entity_' . $type. This makes it impossible to add pseudo fields in the style of node edit and delete links that build upon views_field_handler_entity.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2192483-entity_views_data-1.patch | 686 bytes | mikey_p |
Comments
Comment #1
mikey_p CreditAttribution: mikey_p commentedThis should be sufficient.
Comment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 5 year old patch to entity.views.inc applied cleanly to the latest entity 7.x-1.x-dev and (if still relevant) needs review.