I'm trying to learn how to configure content types and form modes programmatically in Drupal 8. I've created the following using the UI:
- A content type named
book
- A form mode for content, named
foo
- A view mode for content, named
bar
When I run drush cget
, I get this list:
...
[36] core.entity_form_display.node.book.default
[37] core.entity_form_mode.node.foo
[38] core.entity_form_mode.user.register
[39] core.entity_view_display.node.book.default
[40] core.entity_view_display.node.book.teaser
[41] core.entity_view_mode.node.bar
[42] core.entity_view_mode.node.full
[43] core.entity_view_mode.node.rss
[44] core.entity_view_mode.node.search_index
[45] core.entity_view_mode.node.search_result
[46] core.entity_view_mode.node.teaser
[47] core.entity_view_mode.user.compact
[48] core.entity_view_mode.user.full
...
What is the difference between the entity_form_display
configuration (36) and the entity_form_mode
configurations (37, 38)?