Problem/Motivation
Error on install
[error] Error: Cannot call abstract method Drupal\Core\Messenger\MessengerInterface::addMessage() in animate_css_install() (line 20 of /home/a/Public/d9/web/modules/contrib/animate_css/animate_css.install) #0 [internal function]: animate_css_install()
Steps to reproduce
drush en animate_css
Proposed resolution
replace:
MessengerInterface::addMessage(t('Animate CSS module requires the animate library. <a href=":anim_link">Download animate library</a> and unzip into /libraries/animate.css.', [':anim_link' => DOWNLOAD_URL]));
with:
\Drupal::messenger()->addMessage(t('Animate CSS module requires the animate library. <a href=":anim_link">Download animate library</a> and unzip into /libraries/animate.css.', [':anim_link' => DOWNLOAD_URL]));
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix_install_module-3296389.patch | 832 bytes | afagioli |
Comments
Comment #2
afagioliComment #3
afagioliPlease test patch in #2
Comment #4
afagioliComment #5
vinaygawade@afagioli Thank you! I applied the patch provided in #2 locally with no issues and it's working fine. Changing status to RTBC.
Comment #7
vladimirausThanks everyone! Committed! 🍻
Comment #9
vladimiraus