- ๐ฌ๐งUnited Kingdom catch
Updated the issue title, this is just a straightforward deprecation now. Needs a re-roll updating the deprecation version.
- ๐ซ๐ทFrance andypost
Filed CR https://www.drupal.org/node/3384294 โ
and updated patch, looks there's no test for
uri_callback
annotation in comment entityAlso it needs update hook to clear entity definition cache, and let's see if something will be broken with deprecation only
Looking for better wording as
Comment::permalink()
is useless ๐ Rename Comment::permalink() to not be ambiguous with ::uri() Needs workThat's reason why issue used to have such title
- last update
about 1 year ago 30,098 pass - ๐ฌ๐งUnited Kingdom catch
Comment::permalink() isn't useless, it's necessary to link to a comment in the context of the thread (with the correct page and comment fragment). I think we can just tell people to use that until it's renamed. However why not recommend $comment->uri() here?
- ๐ฎ๐ณIndia samit.310@gmail.com
samit.310@gmail.com โ made their first commit to this issueโs fork.
- Status changed to Needs review
3 months ago 11:48am 5 September 2024 - ๐ฎ๐ณIndia samit.310@gmail.com
Hello,
The
comment_uri
function is only been used inuri_callback
comment entity's annotation.As per https://www.drupal.org/project/drupal/issues/2667040 ๐ Deprecate uri_callback in routes for entities Needs work ticket the uri_callback is also depricated.
In
template_preprocess_comment
hook$comment->permalink();
is already been used to generate Comment link.Thanks
Samit K. - Status changed to Needs work
3 months ago 1:12pm 5 September 2024 - ๐บ๐ธUnited States smustgrave
Title says to deprecate the function so that still needs to be done
- ๐ฎ๐ณIndia samit.310@gmail.com
Hi @smustgrave,
As per the changes record [#3384294] it is deprecated in 10.2.0 and will removed with 11.x, so i removed it for 11.x branch.
Thanks
Samit K. - ๐บ๐ธUnited States smustgrave
Yes but it got missed so now needs to be properly deprecated
- ๐ฎ๐ณIndia samit.310@gmail.com
Hi @smustgrave,
Updated the code based on your suggestion. Also updated the changes record [#3384294] โ .
Thanks
Samit K. - ๐บ๐ธUnited States smustgrave
Thanks only thing missing is a quick deprecation test
- ๐ฎ๐ณIndia samit.310@gmail.com
Hi @smustgrave,,
Test also added, Please review.
Thanks
Samit K.