Skip to content

Installation

Install the module with Composer:

composer require drupal/theme_view_display

Enable it, together with the sub-modules you need:

drush en theme_view_display
drush en theme_view_display_builder      # Display Builder overrides
drush en theme_view_display_field_group  # field groups in overrides

theme_view_display_builder depends on the display_builder_entity_view sub-module of Display Builder. theme_view_display_field_group depends on Field Group.

Field UI is not a dependency, but every screen of the module is built on it. Enable it to create and edit overrides in the UI. A site can uninstall it after setup: overrides keep rendering, and they are changed with recipes and config actions or config import.

After installing

  1. Grant the permissions to the roles that manage displays.
  2. Install the themes you want to override displays for. Only installed themes are offered.
  3. With Field UI enabled, open the Manage display page of a bundle. See Creating an override.

Uninstalling

Overrides are config entities of this module. Uninstall removes them. To remove a single override, use its revert link. See Editing an override.