In my code, I need to get a list of all the view modes defined for nodes.
In Drupal 7, it was available via
entity_get_info(). What is the equivalent method for producing a list of available view modes in Drupal 8?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community