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.

CommentFileSizeAuthor
browserclass.zip2.88 KBmatio89

Comments

matio89 created an issue. See original summary.

matio89’s picture

Assigned: Unassigned » matio89
norman.lol’s picture

Parent issue: » #2380539: Drupal 8
norman.lol’s picture

Wow! 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?

norman.lol’s picture

There also is already a contrib module in dev state right now https://www.drupal.org/project/extra_body_classes - only JS as well unfortunately.

artsays’s picture

You 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)

  • leymannx committed 7683aba on 8.x-1.x authored by matio89
    Issue #2683549 by matio89: Browserclass is in Drupal 8 now !
    
norman.lol’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Assigned: matio89 » Unassigned
Status: Active » Fixed

Initiated 8.x-1.x branch and pushed and credited @matio89's contribution.

norman.lol’s picture

Status: Fixed » Closed (fixed)