Closed (fixed)
Project:
Duplicate role
Version:
8.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2023 at 11:00 UTC
Updated:
30 Oct 2024 at 19:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rohit rana commentedComment #3
aditi saraf commentedDue to failure moving this to need Work
Comment #4
aditi saraf commentedi am checking this issue .
Comment #5
aditi saraf commentedi have uploaded patch , please review .
Comment #6
aditi saraf commentedComment #7
aditi saraf commentedComment #8
aditi saraf commentedComment #9
raveen_thakur51 commentedAbsolutely, in Drupal 8 and 9, the t() function is indeed discouraged for use within classes. Instead, you can use the \Drupal\Core\StringTranslation\StringTranslationTrait and the $this->t() method for translation within classes.
Comment #12
admirlju commentedCreated an issue fork, and applied the patches. Locally the tests are passing, but because Drupal CI is deprecated, they will not pass with that. So I just added a basic gitlab-ci. And from what I see they are passing there. Still because of some CS fixes I'll leave this as needs review.
Comment #13
bohartAfter the latest changes at 8.x-1.x-dev branch, it looks like all changes at
DuplicateRoleForm.phpand.gitlab-ci.ymlfiles must be removed from MR !7.Marking this one as Needs work.
Comment #16
bohartMerged. The changes will be a part of the next module release. Thanks!