Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
1

You're looking for the bundle key, which can be obtained from the entity type: $entity_type = 'node'; // Load the entity type definition and get its keys. $keys = \Drupal::entityTypeManager() ->getDefinition($entity_type) ->getKeys(); $query = \Drupal::entityQuery($entity_type); // 'bundle' is optional, if not provided it will be the same as ...


Only top voted, non community-wiki answers of a minimum length are eligible