We have 10 view modes that we created. When we run
drush @env cex sync in our local we are able to export the config files related to these view modes such as
core.entity_view_mode.node.related.yml (where related is the view mode).
Is there a database table where these View modes are stored? If so, what is the name of it?
We are not using Display Suite or Panels, just the out of the box View Modes from Core. We do not plan to add those modules.
- Find out what view modes are being used programmatically.
- Delete all view modes that are not being used.
not being used:
Articlecontent type has 3 custom view modes:
listing, minimum, related
Basic Pagecontent type has an Entity reference to
Articlepages where the
Article view mode = listingunder
Basic Page Default View Mode.
- Custom view modes
minimumare not being used. However, if we consider all content types (e.g. 10 more content types) then it will be a pain to have to go through one by one.