\Drupflare\Anachron\Drupal\Entity LegacyEntityTypes

Entity types that a Drupal 7 module declares with `hook_entity_info()`.

Drupal 11 has no such hook, so these types have no entity type definition and no storage. They are read from the module's procedural implementation and loaded by the Drupal 7 controller class the declaration names. A type Drupal 11 defines wins over a declaration of the same name.

The answer is rebuilt on every call: a static copy would survive into the next request of a persistent worker.

Summary

Methods
Properties
Constants
declared
find
No public properties found
No public constants found
No protected methods found
No protected properties found
No protected constants found
complete
No private properties found
No private constants found

Methods

declared()

declared() : array<string,array<string,mixed>>

Lists the declared types, with the defaults Drupal 7 filled in.

Returns

array> —

find()

find(string  $type) : array<string,mixed>

Answers one declared type, or an empty array when no module declares it.

Parameters

string $type

Returns

array —

complete()

complete(string  $type, array  $info) : array<string,mixed>

Fills the keys `entity_get_info()` added to every Drupal 7 declaration.

Parameters

string $type
array $info

Returns

array —