Problem/Motivation
This Task is follow up from issue #2693485: Content types are ordered by machine name on /node/add page (+ similar issues with other entities)
Steps to reproduce
Proposed resolution
Deprecate the string code path and use typehint with an array in
+++ b/core/modules/block_content/tests/src/Functional/BlockContentTestBase.php
@@ -112,4 +112,27 @@ protected function createBlockContentType($label, $create_body = FALSE) {
+ protected function createBlockContentTypeWithId($id, $label = '') {Typehint will be added in D12 when the deprecation is removed.
| Comment | File | Size | Author |
|---|
Issue fork drupal-3196937
Show commands
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
paulocsComment #3
paulocsA patch for it.
Comment #4
kleiton_rodrigues commentedThe patch 3196937-3.patch is working correctly.
Was not found error and the patch was applied successfully.
Comment #5
alexpottThere's a spelling mistake.
@kleiton_rodrigues thank you for looking into this issue.
Posting screenshots of your codebase or CLI does not advance the issue, since the automated testing infrastructure tells us whether the patch applies correctly.
So, I've removed the issue credit for that screenshot. In the future, you can get credit for issues by reading the issue to understand its purpose, and posting your review or testing of that purpose. Thank you!
Comment #6
ayushmishra206 commentedMade the change pointed out in #5. Please review.
Comment #7
ayushmishra206 commentedApology for the last patch, apparently the patch passed the Custom Command test in my local. Attaching the screenshot.
Also attached is the patch and diff after the fix.
Comment #17
quietone commentedComment #18
quietone commentedComment #19
smustgrave commentedSeems straight forward. Tweaked IS to mention the typehint will be added in D12.
Comment #20
alexpottAdded some comments to the MR. We need to create a CR for this one and use it in the deprecation notice.
Comment #21
quietone commentedI thought I left a note here about the CR. Anyway, I did mess up the changes. That should be fixed now and I created the CR and updated the link in the deprecation message.
Comment #22
smustgrave commentedCR is there and pretty straight forward. Still get confused when a CR is needed vs pointing to an issue as I've seen both and get told different things.
But feedback to shorten replacements with just ID appears complete.
Remarking
Comment #23
alexpottCommitted f296e34 and pushed to 11.x. Thanks!