Problem/Motivation
"Display mode" versus "View mode". It's confusing to new (and experienced) uses to have two terms for the same thing, let's at least make the D8 user interface consistent and go with "Display mode". When configuring the field formatter for an entity reference field, the phrase "View mode" is used:

I realize that the phrase "view mode" is used extensively in the code base for variables and comments, but I think it is important that we stay consistent in the user interface. Since we now have "Structure | Display modes", it seems reasonable that we should stay consistent in the user interface.
Proposed resolution
Make "View mode" go away.
Remaining tasks
Search the code base, substitute "View mode" for "Display mode".
User interface changes
Just some minor text changes.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | Display_modes_admin.png | 15.27 KB | yched |
| #11 | interdiff-2567763-8-11.txt | 150.6 KB | pguillard |
| #11 | eradicate_term_view_mode-2567763-11.patch | 182.67 KB | pguillard |
| #8 | eradicate_term_view_mode-2567763-8.patch | 28.38 KB | pguillard |
Comments
Comment #2
ultimikeComment #3
ultimikeComment #4
nod_Comment #5
davidhernandezI approve of making this consistent. I'm constantly saying display mode, because that is what is in the UI, and then have to correct myself.
Comment #6
ultimikeHmm - now I'm second-guessing myself on this, mainly after someone pointed out to me that there are actually two types of "Display modes" according to the Drupal 8 UI. Navigate on over to "Structure | Display modes" and you'll see two options: "Form modes" and "View modes". This implies that "View modes" are a subset of "Display modes", which would then make the "View mode" label when modifying an entity reference field formatter correct.
Is this thinking correct? Does the display mode "hierarchy" look like this?
-mike
Comment #7
pguillard commentedComment #8
pguillard commentedFirst proposition
Comment #11
pguillard commentedA lot of replacements were missing. Now this is maybe too much..
Comment #14
yoroy commentedI think #6 correctly describes the current situation. It's not ideal though to emphasise the differences and have different terms for what are basically variations on a theme. I do prefer "display" over "view".
Maybe "Form display mode" and "Content display mode" would work better.
Comment #15
Bojhan commentedLet's do it.
Comment #16
Bojhan commentedComment #17
davidhernandez#14 sounds good.
Comment #18
yched commentedYes, basically, there are "view modes" and "form modes", the common denomination being "display mode".
There are not many places in the UI where we talk about "display modes" generally, UIs are usually about one or the other specifically (displaying an entity render, or an entity form).
But one of them is admin/structure/display-modes, since it's the entry point in the IA tree that lets you administer both :
Not sure what we'd do on that page if we decide to rename "View modes" to "Display modes" :-)
Comment #22
yoroy commentedComment #35
robbt commentedI think that this could definitely be improved because using View Mode for content displays is easy to confuse with the Views module. It also makes it harder for people to find documentation for how to use custom view modes because of the language similarity in terms of search.
On the main admin page we have Display modes
Configure what displays are available for your content and forms.
So we utilize the term content on the top link but inside it shows
Form modes
Manage custom form modes.
View modes
Manage custom view modes.
Which requires a leap of logic to go from content to View Modes
The more consistent terminology I'd suggest would be to change the language to
Form Display modes - Manage custom form display modes
and
Content Display modes
Manage custom display modes for content.
The other issue is that if someone isn't completely familiar with Drupal there is no obvious way to utilize the display modes once they're created. Instead you have to know that you have to go to Admin -> Content Types -> Select a Content Type on the list -> Manage Fields then scroll to the Manage display tab or click the drop down and select Manage Display and then expand the Custom Display settings and you can get a checkbox for the various view modes.
Then all the UI provides is an ability to select different fields that could be displayed and you still I would assume need to create a custom twig template for this view mode (or use a module like display mode) if you want to customize how it's displayed. As far as I can find there is no documentation for how to do this on Drupal.org -> https://www.drupal.org/docs/drupal-apis/entity-api/display-modes-view-mo...
Display and View are synonymous to someone who doesn't know Drupal where as View and Views are two core Drupal concepts and it is very easy for someone to get the two confused if they're searching documentation.
There are very few Custom Form Display Modes whereas a lot of View Modes are provided by default.
So I think that even as #18 suggests that there is a problem with showing Display Modes and then Form Display Modes and View Display Modes - just substituting either Content Display modes or just having the default Display Mode be content and then Form be a specialized type of Display mode does not seem like a problem to me.
The biggest challenge at this point would be confusion from eliminating "view modes" and using "display modes" instead for existing developers but I think that lowering the cognitive load and overloading of the word view would be worth it.