Problem/Motivation

The node preview code offers a view mode list.
We refer to its code, but we don't do the clean-up to remove known non-frontend view modes such as RSS.

Proposed resolution

Remove them similarly.
Note this is not an extensible concept...
But it declutters the UI a bit.

User interface changes

Get rid off view modes that are not made for end users in frontend.

Comments

miro_dietiker created an issue. See original summary.

johnchque’s picture

Status: Active » Needs review
StatusFileSize
new761 bytes

Is there any other that shouldn't be displayed?

miro_dietiker’s picture

Status: Needs review » Needs work

Checkout \Drupal\node\Form\NodePreviewForm::buildForm

It unsets 'rss' and 'search_index'.

johnchque’s picture

Status: Needs work » Needs review
StatusFileSize
new840 bytes

There we go.

miro_dietiker’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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