System stream wrapper
2,916 sites
Security covered
This module provides read-only access to files and directories within Drupal modules, themes, profiles, and libraries using convenient stream wrappers. This allows you to easily reference these assets in your code and configurations.
Provides stream wrappers to access module, theme, profile, and library files and directories. Note these stream wrappers are read-only as none of these files or directories should be write-able by your webserver.
Want to help get these stream wrappers into core? Subscribe and/or help review #1308152: Add stream wrappers to access .json files in extensions!
Examples
- module://file/icons/text-plain.png
- theme://bartik/screenshot.png
- theme://default/screenshot.png
- profile://minimal/minimal.info
- profile://current/standard.info (profile://current expands to the active profile for the site)
- library://ckeditor/images/spacer.gif (works only if the Libraries module is enabled)
Related modules
- Remote stream wrapper for http://, https://, and feed:// URLs.