Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We'd like the ability to alter the Lullabot\AMP\AMP
object created in _amp_create_amp_converter()
.
In our case, we'd like to add some custom passes to the Lullabot\AMP\AMP::$passes
array.
Proposed resolution
Invoke an alter hook in _amp_create_amp_converter()
Comment | File | Size | Author |
---|---|---|---|
#3 | amp_converter_alter_2941421-1.patch | 706 bytes | davidgrayston |
|
Comments
Comment #2
davidgrayston CreditAttribution: davidgrayston at Dennis commentedComment #3
davidgrayston CreditAttribution: davidgrayston at Dennis commentedComment #4
davidgrayston CreditAttribution: davidgrayston at Dennis commentedComment #5
GaxZE CreditAttribution: GaxZE at Dennis commentedComment #6
marcelovaniLet me test this
Comment #7
marcelovaniOk it works
Comment #9
marcelovani