It should be possible to add the class for other entity types, e.g. taxonomy terms, groups, users, etc.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

AstonVictor created an issue. See original summary.

astonvictor’s picture

Assigned: astonvictor » Unassigned

Created a new MR.

Refactored the module to add body classes to any entities that have a canonical route and use fields.
Tested with nodes, taxonomy terms, and users.
Both Add CSS class(es) & If checked, add name of entity type as class to body tag. fields can be configured on manage form display page for the entity type.

astonvictor’s picture

Status: Active » Needs review
astonvictor’s picture

hi @Jitendra verma,

any updates? could you review and merge it?