backdrop-dev / template-helpers
Backdrop Template Helpers is set a helper functions for setting the path, locations, and filtering templates.
v1.0.1
2026-11-17 19:43 UTC
Requires
- php: >=7.4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-17 19:44:22 UTC
README
Backdrop Template Helpers is set a helper functions for setting the path, locations, and filtering templates.
Requirements
Functions
All functions are in the Backdrop\Template\Helpers namespace.
path( $file = '' ): the relative path to the views folder (resources/views/by default, filterable withbackdrop/template/path).locations(): the folders searched for templates, the active theme first and then the parent theme (filterable withbackdrop/template/locations).locate( $templates ): the full path to the first template found inlocations(), or an empty string.filter_templates( $templates ): prefixes a list of templates with the views path.
Copyright and License
This project is license under GNU GPL, version 2 or higher
2019-2026. Benjamin Lu