Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have a list of events by date page that is created by Views.
I would like "Event" content type title fields to link to their node, which is how I have it setup. So that works as desired.
However, I also have an "Event links" content type, these events occur very often and I would like the title of them all to simply link to a page on my site. Of course, like the Event nodes above, they currently just link to their node which has no content because I don't want to duplicate it for each one.
I’m trying to create a truly computed field having no schema.
As stated in API documentation the schema() implementation should return an empty array, but trying this resolves in the following error when I add the computed field to a node type:
EDIT: Solved. I'll leave this here for any future searchers.
Solution:
Drupal 8 has a setting to delete orphan images on the /admin/config/media/file-system page which it does as frequently as every 6 hours. Somehow the images in question below were designated as orphans by D8. There is a database table called "file_managed" which has a "status" column. A 0 in this column means Drupal thinks that image is an orphan and will be deleted if you have that option enabled on the admin page previously mentioned.