File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 77use Consolidation \AnnotatedCommand \CommandData ;
88use Consolidation \AnnotatedCommand \Hooks \HookManager ;
99use Consolidation \OutputFormatters \StructuredData \RowsOfFields ;
10+ use Drupal ;
1011use Drupal \Core \Config \ConfigFactoryInterface ;
1112use Drupal \Core \Extension \Extension ;
1213use Drupal \Core \Extension \MissingDependencyException ;
@@ -407,7 +408,8 @@ protected function getModuleLinks(Extension $module): array
407408 }
408409
409410 // Generate link for module's permissions page.
410- if ($ module ->status && $ this ->getPermissionHandler ()->moduleProvidesPermissions ($ module ->getName ())) {
411+ // Avoid DI for PermissionHandler until we understand better at https://github.com/drush-ops/drush/issues/6154.
412+ if ($ module ->status && Drupal::service (PermissionHandlerInterface::class)->moduleProvidesPermissions ($ module ->getName ())) {
411413 $ links [] = Link::fromTextAndUrl (dt ('Permissions ' ), Url::fromRoute ('user.admin_permissions.module ' , ['modules ' => $ module ->getName ()]));
412414 }
413415
You can’t perform that action at this time.
0 commit comments