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.
Simple handler to use the field entity_label() and entity_url() functions to show the entities label (i.e. $node->title) if empty.
Display Options:
- Text only
- Link
Internals:
Label = entity_label()
$url = entity_url()
Link = l(entity_label(), $uri['path'], $uri['options'])
Comments
Comment #1
Alan D. CreditAttribution: Alan D. commentedSee a9fe402