Install

Works with Drupal: ^11.3 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 10 KB
MD5: ba395f791c907121f83fcf8293a8f644
SHA-1: 7f0af11a68016bdbdad970b6d2062f4fd6fd5f45
SHA-256: 411f2fdac1be7097b425b5f0e7c282751614084ea4d1cc036af2a632c6f91009
Download zip 14.58 KB
MD5: 16c8b5509e5ece190d56d07ad13da101
SHA-1: ac9b22c8e3262188be7905ac2c6b3988a55bd0d3
SHA-256: a3a37662352882bc51df70948e5cb4d80058481769ec613acfc26e957d6368dc

Release notes

View Body Classes 1.1.0 supports Drupal 12 and requires Drupal 11.3 or later. The classes it adds are unchanged: view-id--ID and view-display--DISPLAY on the body of every page a view renders.

Upgrade notes

  • Drupal 10 and Drupal 11.0 to 11.2 are no longer supported. Sites on those versions stay on 1.0.0, which keeps working there. Drupal 11.3 is the oldest Drupal 11 minor still receiving security updates.
  • No configuration, no update hook: update the code and clear the cache.

Changes

  • Drupal 12 support. The hook is now an object-oriented hook class, which Drupal 11.2 and later register on their own, so the module no longer ships a .module file or a service definition. (#3604639)
  • A page without a route name no longer triggers a PHP deprecation notice: the route name is checked before it is compared.
  • Automated tests (unit and functional), run on Drupal 11.3, 11.4 and 12.
Created by: mably
Created on: 21 Nov 2026 at 15:42 UTC
Last updated: 21 Nov 2026 at 15:43 UTC
Bug fixes
New features

Other releases