By podarok on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
master
Introduced in version:
master
Description:
For the decoupled and easier to upgrade code in Drupal 8+ Dependency Injection code must be used everywhere instead of calling methods from services statically.
See https://api.drupal.org/api/drupal/core%21core.api.php/group/container/9.3.x
The issue has been caught here
Before
...
$node = Drupal::entityTypeManager()->getStorage('node')->load($result->getField('nid')->getValues()[0]);
...
After
...
$node = $this->entityTypeManager->getStorage('node')->load($result->getField('nid')->getValues()[0]);
...
Impacts:
Module developers
Comments
TODO
Found here https://git.drupalcode.org/project/qs_profile_2_cta/-/merge_requests/1
---------------
Andrii Podanenko
CEO, ITCare
TODO
Fix it here - https://git.drupalcode.org/project/qs_profiles/-/merge_requests/1
---------------
Andrii Podanenko
CEO, ITCare