Hi,
The system of cache in Drupal 8 is different to Drupal 7.
I created this module in Drupal 8.
The module will be fonctionnel after installation.
Here is the module browserclass attached.
| Comment | File | Size | Author |
|---|---|---|---|
| browserclass.zip | 2.88 KB | matio89 |
Comments
Comment #2
matio89 commentedComment #3
norman.lolComment #4
norman.lolWow! Thanks a lot for your module. Do you mind implementing a no-JS way as well? Do you have this module somewhere on GitHub maybe so we can help?
Comment #5
norman.lolThere also is already a contrib module in dev state right now https://www.drupal.org/project/extra_body_classes - only JS as well unfortunately.
Comment #6
artsays commentedYou can try to use this module https://www.drupal.org/project/user_agent_class
Module contains two different ways to check "User Agent" by Frontend (js) and Backend (php)
Comment #8
norman.lolInitiated 8.x-1.x branch and pushed and credited @matio89's contribution.
Comment #9
norman.lol