Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Added dependency injection for EntityTypeManager instead \Drupal calls #602

Merged
merged 3 commits into from
Feb 7, 2020

Conversation

kbrodej
Copy link
Contributor

@kbrodej kbrodej commented Dec 24, 2019

Fix for #547 $entity_type_manager was already in construct but never used.

@kbrodej kbrodej changed the title Update ruleset and added dependency injection for EntityTypeManager Added dependency injection for EntityTypeManager instead \Drupal calls Dec 24, 2019
@pfrenssen
Copy link
Contributor

Hah this is a very good find, we were already injecting it but we forgot to store the dependency locally and were accessing it through the legacy static \Drupal::entityTypeManager()!

Great job, thanks @kbrodej !

@pfrenssen pfrenssen merged commit b0349d6 into Gizra:8.x-1.x Feb 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants