Closed (fixed)
Project:
Cloud
Version:
4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
9 Aug 2021 at 07:22 UTC
Updated:
26 Aug 2021 at 07:09 UTC
Jump to comment: Most recent, Most recent file
Refactor a deprecated function drupal_get_path()
See also: https://www.drupal.org/node/2940438
drupal_get_path()
If you want to specify the type dynamically you can use:
drupal_get_path('module', 'node') -> \Drupal::service('extension.path.resolver')->getPath('module', 'node')
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 3227311-15.patch | 16.68 KB | xld |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
xld commentedComment #4
xld commentedComment #5
ankithashettyThere is a MR to be reviewed in #3, so changing status to "Needs review", thanks!
Comment #6
xld commentedComment #7
yas@XLD
Thank you for the refactoring. It looks good to me; I posted my comments above. Please check the ones. Thanks!
Comment #8
yas@XLD
Also, please fix a coding standard violation.
Comment #9
xld commentedComment #11
xld commented@Yas, To call the function in your proposed way in the Trait we need to create a constructor which is not entirely recommended for traits. I have uploaded the patch with the remaining changes but please review it and advise further. Thank you.
Comment #12
yas@XLD
Thank you for your update.
Yes, I agree with you. Please put the comment as you said. Also, please rebase the branch.
Thanks!
Comment #13
xld commentedComment #14
xld commentedUpdated patch after rebase.
Comment #15
xld commentedComment #16
xld commentedComment #17
yas@XLD
Thank you for the update. It looks good to me. I'll merge the patch to
4.xand close this issue as Fixed.Comment #20
yas