\Drupal
is used to check for and then load the content_translation.manager
service in InlineEntityFormBase::isTranslating()
. Both phpcs and PHPSTan are flagging it, resulting in multiple comments to ignore the warnings. The \Drupal
class is used here because the service is a kind of optional dependency. IEF must use it if it's enabled.
Find a better way to inject the service, if possible.
Active
3.0
Code