Problem/Motivation

Once the field is ready in #3336935: Create "Rabbit Hole" field type for overrides, let's make it not configurable via UI. Basically, we have to replicate the Layout Builder feature, where field with section overrides becomes available when "Override" option is enabled.

In our case, the checkbox that either enables or disables the field is available on Rabbit Hole bundle settings:
1) Go to /admin/config/content/rabbit-hole/ page;
2) Configure one of the content types;
3) "Allow these settings to be overridden for individual entities";

If the checkbox is selected, the field should be available, and vice versa.

Please look into Layout Builder implementation for the inspiration:
LayoutBuilderEntityViewDisplay::addSectionField()

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

Matroskeen created an issue. See original summary.

matroskeen’s picture

Issue tags: +LutskGCW23
matroskeen’s picture

Issue summary: View changes
alt.dev’s picture

Assigned: Unassigned » alt.dev

  • Matroskeen committed a8860ab0 on 2.0.x authored by alt.dev
    Issue #3336951 by alt.dev: Hide Rabbit Hole field from UI and enable/...
matroskeen’s picture

Assigned: alt.dev » Unassigned
Status: Active » Fixed

For me, it works like a charm. Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.