531531 * implementing \Drupal\Core\Entity\EntityStorageInterface that you can
532532 * retrieve with:
533533 * @code
534- * $storage = \Drupal::entityManager ()->getStorage('your_entity_type');
534+ * $storage = \Drupal::entityTypeManager ()->getStorage('your_entity_type');
535535 * // Or if you have a $container variable:
536- * $storage = $container->get('entity .manager')->getStorage('your_entity_type');
536+ * $storage = $container->get('entity_type .manager')->getStorage('your_entity_type');
537537 * @endcode
538538 * Here, 'your_entity_type' is the machine name of your entity type ('id'
539539 * annotation property on the entity class), and note that you should use
622622 *
623623 * @see i18n
624624 * @see entity_crud
625- * @see \Drupal\Core\Entity\EntityManagerInterface ::getTranslationFromContext()
625+ * @see \Drupal\Core\Entity\EntityRepositoryInterface ::getTranslationFromContext()
626626 * @}
627627 */
628628
@@ -798,8 +798,8 @@ function hook_entity_type_alter(array &$entity_types) {
798798 * @param array $view_modes
799799 * An array of view modes, keyed first by entity type, then by view mode name.
800800 *
801- * @see \Drupal\Core\Entity\EntityManagerInterface ::getAllViewModes()
802- * @see \Drupal\Core\Entity\EntityManagerInterface ::getViewModes()
801+ * @see \Drupal\Core\Entity\EntityDisplayRepositoryInterface ::getAllViewModes()
802+ * @see \Drupal\Core\Entity\EntityDisplayRepositoryInterface ::getViewModes()
803803 */
804804function hook_entity_view_mode_info_alter (&$ view_modes ) {
805805 $ view_modes ['user ' ]['full ' ]['status ' ] = TRUE ;
@@ -813,7 +813,7 @@ function hook_entity_view_mode_info_alter(&$view_modes) {
813813 * type name, and then the bundle name, with the following keys:
814814 * - label: The human-readable name of the bundle.
815815 * - uri_callback: (optional) The same as the 'uri_callback' key defined for
816- * the entity type in the EntityManager , but for the bundle only. When
816+ * the entity type in the EntityTypeManager , but for the bundle only. When
817817 * determining the URI of an entity, if a 'uri_callback' is defined for both
818818 * the entity type and the bundle, the one for the bundle is used.
819819 * - translatable: (optional) A boolean value specifying whether this bundle
@@ -1827,7 +1827,7 @@ function hook_entity_form_display_alter(\Drupal\Core\Entity\Display\EntityFormDi
18271827 * @see hook_entity_bundle_field_info()
18281828 * @see hook_entity_bundle_field_info_alter()
18291829 * @see \Drupal\Core\Field\FieldDefinitionInterface
1830- * @see \Drupal\Core\Entity\EntityManagerInterface ::getFieldDefinitions()
1830+ * @see \Drupal\Core\Entity\EntityFieldManagerInterface ::getFieldDefinitions()
18311831 */
18321832function hook_entity_base_field_info (\Drupal \Core \Entity \EntityTypeInterface $ entity_type ) {
18331833 if ($ entity_type ->id () == 'node ' ) {
@@ -1888,7 +1888,7 @@ function hook_entity_base_field_info_alter(&$fields, \Drupal\Core\Entity\EntityT
18881888 * @see hook_entity_bundle_field_info_alter()
18891889 * @see \Drupal\Core\Field\FieldDefinitionInterface
18901890 * @see \Drupal\Core\Field\FieldDefinition
1891- * @see \Drupal\Core\Entity\EntityManagerInterface ::getFieldDefinitions()
1891+ * @see \Drupal\Core\Entity\EntityFieldManagerInterface ::getFieldDefinitions()
18921892 *
18931893 * @todo WARNING: This hook will be changed in
18941894 * https://www.drupal.org/node/2346347.
0 commit comments