$flag_service = \Drupal::service('flag');

We shouldn't be calling out to the service container within a class that is itself a service.

Comments

joachim’s picture

joachim’s picture

Status: Active » Closed (won't fix)