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.
Following #1172970: provide a unified way to retrieve result entities
Should we do in views_handler_field_taxonomy, something like this?
function render_link($data, $values) {
$tid = $this->get_value($values, 'tid');
if (!empty($this->options['link_to_taxonomy']) && !empty($tid) && $data !== NULL && $data !== '') {
$term = taxonomy_term_load($tid); // <-- Load the entity
instead of the dummy entity?
Comments
Comment #1
dawehnerYes this seems to make sense.
Comment #2
MustangGB CreditAttribution: MustangGB commentedClosing this as outdated to tidy up a bit around here. If you're still having problems with the latest release please create a new issue.