Skip to main content
Image
Drupal Sapiens snippet

Get complete list of Drupal entities

To get a complete list of the entities of a website built with Drupal we can do it in different ways. The fastest and easiest way is through Drush, click here to see how to install Drush on your website if you don't have it yet!

Para instalaciones de Drupal 7, ejecute el siguiente comando con Drush a travΓ©s del sΓ­mbolo del sistema:
drush eval "print_r(array_keys(entity_get_info()));"
Para Drupal 8, Drupal 9, Drupal 10 e instalaciones superiores, ejecute el siguiente comando con Drush a travΓ©s del sΓ­mbolo del sistema:
drush eval "print_r(array_keys(\Drupal::entityTypeManager()->getDefinitions()));"

Join the Drupal Sapiens Community

Save content that interests you, connect with others in the community, contribute to win prizes and much more.

Login or create an account here

Featured

Last news