By mstrelan on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.3.x
Introduced in version:
11.3.0
Issue links:
Description:
\Drupal\comment\CommentLinkBuilder::__construct() has been changed. Passing the module_handler and entity_type.manager services as parameters is now deprecated.
Before:
new CommentLinkBuilder(
\Drupal::service('current_user'),
\Drupal::service('comment.manager'),
\Drupal::service('module_handler'),
\Drupal::service('string_translation'),
\Drupal::service('entity_type.manager'),
);
After:
new CommentLinkBuilder(
\Drupal::service('current_user'),
\Drupal::service('comment.manager'),
\Drupal::service('string_translation'),
);
Impacts:
Module developers