Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Replace the entity manager with the entity type manager in the core/modules/field/*.
Comment | File | Size | Author |
---|---|---|---|
#8 | 2755833-8.patch | 37.93 KB | rajeshwari10 |
#6 | 2755833-6.patch | 37.95 KB | rajeshwari10 |
#4 | 2755833-4.patch | 38 KB | rajeshwari10 |
#2 | 2755833-2.patch | 37.99 KB | rajeshwari10 |
Comments
Comment #2
rajeshwari10 CreditAttribution: rajeshwari10 as a volunteer and at Blisstering Solutions commentedreplaced entityManager with entityTypeManager.
Please review.
Thanks!!
Comment #4
rajeshwari10 CreditAttribution: rajeshwari10 as a volunteer and at Blisstering Solutions commentedReplaced entityTypeManager with Drupal service in field.module for getFieldMapByFieldType()function.
Comment #6
rajeshwari10 CreditAttribution: rajeshwari10 as a volunteer and at Blisstering Solutions commentedReplaced \Drupal::service('entity_type.manager')->getDefinition with \Drupal::entityTypeManager()->getDefinition.
Comment #8
rajeshwari10 CreditAttribution: rajeshwari10 as a volunteer and at Blisstering Solutions commentedComment #12
xjmDeprecated functionality should be removed by concept, not by file or module. It would be better to replace each specific pattern throughout core in separate issues. For example, see my recent comment on #2639682: Replace deprecated get('entity.manager') with get('entity_type.manager'). Another issue could do this exact replacement throughout core, if it's valid:
And so on.
Comment #16
BerdirThe remaining usages are removed in #2886622: Deprecate all EntityManager methods with E_USER_DEPRECATED