Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.In my work getting aegir driving docker containers, I need to alter the VirtualHost template to always write port 80.
While there is a hook to alter the template used, I found there was no way to alter variables directly, so I made one.
Branch and patch coming.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2853184-template-vars-alter.patch | 1.85 KB | Jon Pugh |











Comments
Comment #2
Jon PughComment #4
Jon PughComment #5
helmo CreditAttribution: helmo at Initfour websolutions commented15:19 <@helmo> 2853184 looks good apart from a few lines with trailing whitespace ... which editor do you use?
15:22 <@helmo> jonpugh: ^, after drush_command_invoke_all_ref it could use a blank line... rtbc
Comment #9
colanSo, this is similar to:
...but it's in core, and you can alter existing variables?
Comment #10
helmo CreditAttribution: helmo at Initfour websolutions commentedThis is a bit different ... it's for the variables used in templates.
Comment #11
helmo CreditAttribution: helmo at Initfour websolutions commentedComment #13
helmo CreditAttribution: helmo at Initfour websolutions commentedmerged
Comment #15
Jon PughThis hook needs documentation. Just being in the API file is not enough.