What HTML tags does the scanner detect for file usage?

The scanner detects files referenced through several types of HTML tags in text content. The scanner uses a universal sites/[^/]+/files pattern that works across all Drupal installations (default, multisite, Site Factory). It detects file references made through these HTML tags:

HTML TagWhat It Finds
<a href>Links to files
<img>Inline images
<video>Video embeds
<audio>Audio embeds
<object>Legacy object embeds
<embed>Legacy embed elements
<drupal-media>CKEditor media embeds

The scanner also detects files referenced through:

  • File and image fields on content
  • Media reference fields
  • Link fields with URLs
  • Navigation menu links

Files that are only referenced in theme templates, custom code, or JavaScript-loaded content are not detected by the scanner.