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.
A "virtual" field is a field that does not exist in the database but is exposed to other systems that call the schema. They are used by Views to support fields such as "link to node". Adding support for them in Schema API is a prerequisite for Views being able to leverage Schema API and reduce a lot of its own code requirements.
Comments
Comment #1
Wim LeersSubscribing. *So* interesting! :)
Comment #2
Crell CreditAttribution: Crell commentedOh well.
Comment #3
AndyZhang CreditAttribution: AndyZhang commentedSubscribing.
Comment #4
windmaomao CreditAttribution: windmaomao commentedthis is very interesting, currently i'm working on comment sort, with virtual field, it can be easily achieved.
Comment #17
smustgrave CreditAttribution: smustgrave at Mobomo commentedI wonder if this is still needed for D10 as you are able to define fields in an alter.