diff --git a/core/lib/Drupal/Core/Entity/Annotation/EntityType.php b/core/lib/Drupal/Core/Entity/Annotation/EntityType.php index 4356981..2c27ccb 100644 --- a/core/lib/Drupal/Core/Entity/Annotation/EntityType.php +++ b/core/lib/Drupal/Core/Entity/Annotation/EntityType.php @@ -12,11 +12,6 @@ /** * Defines an Entity type annotation object. * - * Additional information can be provided by modules: hook_entity_info() can be - * implemented to define new properties, while hook_entity_info_alter() can be - * implemented to alter existing data and fill-in defaults. Module-specific - * properties should be documented in the hook implementations defining them. - * * @Annotation */ class EntityType extends Plugin { diff --git a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php index c163afb..1f9cff3 100644 --- a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php @@ -9,6 +9,11 @@ /** * Provides an interface for an entity type and its metadata. + * + * Additional information can be provided by modules: hook_entity_info() can be + * implemented to define new properties, while hook_entity_info_alter() can be + * implemented to alter existing data and fill-in defaults. Module-specific + * properties should be documented in the hook implementations defining them. */ interface EntityTypeInterface { diff --git a/core/modules/system/entity.api.php b/core/modules/system/entity.api.php index 54e05e5..3eb29dd 100644 --- a/core/modules/system/entity.api.php +++ b/core/modules/system/entity.api.php @@ -97,14 +97,13 @@ function hook_ENTITY_TYPE_create_access(\Drupal\Core\Session\AccountInterface $a * Add to entity type definitions. * * Modules may implement this hook to add information to defined entity types, - * as defined in the related annotation object. + * as defined in \Drupal\Core\Entity\EntityTypeInterface. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_info * An associative array of all entity type definitions, keyed by the entity * type name. Passed by reference. * * @see \Drupal\Core\Entity\Entity - * @see \Drupal\Core\Entity\Annotation\EntityType * @see \Drupal\Core\Entity\EntityTypeInterface */ function hook_entity_info(&$entity_info) { @@ -130,7 +129,6 @@ function hook_entity_info(&$entity_info) { * type name. Passed by reference. * * @see \Drupal\Core\Entity\Entity - * @see \Drupal\Core\Entity\Annotation\EntityType * @see \Drupal\Core\Entity\EntityTypeInterface */ function hook_entity_info_alter(&$entity_info) {