KEYS
KEYS = ['id' => 'id', 'revision' => 'revision', 'bundle' => 'bundle', 'label' => 'label', 'language' => 'langcode', 'uuid' => 'uuid']
Builds the Drupal 7 `entity_get_info()` array from Drupal 11 entity type definitions.
Only keys that map one to one are given. The callbacks Drupal 7 carried (load hook,
uri callback, access callback) have no equivalent and are left out, so legacy code that
tests for one finds it missing instead of calling something that is not the same thing. The
exception is controller class: Drupal 7 set it on every type and contrib code passes it to
class_implements() unguarded, so it names DrupalDefaultEntityController, a class whose
methods all refuse.
__construct(\Drupal\Core\Entity\EntityTypeManagerInterface $manager, \Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundles, \Drupal\Core\Entity\EntityDisplayRepositoryInterface $displays) : mixed
| \Drupal\Core\Entity\EntityTypeManagerInterface | $manager | |
| \Drupal\Core\Entity\EntityTypeBundleInfoInterface | $bundles | |
| \Drupal\Core\Entity\EntityDisplayRepositoryInterface | $displays |