System stream wrapper
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.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 2.1.0 | Stable | 10–11 | Add D11 support and drops D9 support | Apr 29, 2025 |