- First commit to issue fork.
- last update
over 1 year ago Custom Commands Failed - @utkarsh_33 opened merge request.
- last update
over 1 year ago 30,060 pass - last update
over 1 year ago 30,064 pass, 1 fail - last update
over 1 year ago 30,064 pass, 1 fail - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 30,065 pass, 1 fail - last update
over 1 year ago 30,100 pass, 1 fail - last update
over 1 year ago 30,100 pass, 1 fail - last update
over 1 year ago 30,101 pass - Status changed to Needs review
over 1 year ago 1:19pm 30 August 2023 - Status changed to Needs work
over 1 year ago 2:49pm 30 August 2023 - ๐บ๐ธUnited States smustgrave
YES! This will be very useful. Could we get a change record how it's expected to deprecate a template.
- last update
over 1 year ago 30,137 pass - Status changed to Needs review
over 1 year ago 5:41am 1 September 2023 - Status changed to Needs work
over 1 year ago 11:22am 1 September 2023 - ๐ฎ๐ณIndia omkar.podey
Change record is still missing but everything else looks good.
- Status changed to Needs review
over 1 year ago 11:21am 4 September 2023 - ๐ซ๐ฎFinland lauriii Finland
Thanks for the change record @Utkarsh_33! Made few edits there.
- Status changed to RTBC
over 1 year ago 4:42pm 4 September 2023 - ๐บ๐ธUnited States smustgrave
CR reads well I think!
Think this should be a 10.2 highlight?
- last update
over 1 year ago 30,139 pass - last update
over 1 year ago 30,139 pass - last update
over 1 year ago 30,149 pass - last update
over 1 year ago 30,149 pass - ๐ซ๐ฎFinland lauriii Finland
In #5 I said that we should trigger deprecation error for preprocess functions, template overrides etc, but I don't know if that's actually true. We want themes to keep their support for the template until the template has been removed. This could mean that themes are left with left over templates and preprocess function but this seems less of a problem than breaking existing uses of the template.
Maybe the next step would be something like
hook_removed_themes()
which would allow us to define deleted theme hooks in the next major and then trigger a deprecation warning for the left over preprocess functions and templates. Thoughts on this? - ๐ฌ๐งUnited Kingdom longwave UK
@lauriii maybe even just extend the hook_theme API in the same way and declare a 'removed' or 'obsolete' key instead of 'deprecated'?
- last update
over 1 year ago 30,149 pass - last update
over 1 year ago 30,151 pass - last update
over 1 year ago 30,160 pass - last update
over 1 year ago 30,164 pass - last update
over 1 year ago 30,167 pass - last update
over 1 year ago 30,171 pass - last update
over 1 year ago 30,171 pass - last update
over 1 year ago 30,208 pass - ๐ณ๐ฟNew Zealand quietone
This also needs to have the Deprecation policy updated with an example usage.
- last update
over 1 year ago 30,366 pass - ๐ซ๐ฎFinland lauriii Finland
#23 that seems like a good idea!
So I guess what's still needed per #24 is updating https://www.drupal.org/about/core/policies/core-change-policies/drupal-d... โ ๐
- last update
about 1 year ago 30,368 pass - last update
about 1 year ago 30,363 pass - last update
about 1 year ago 30,365 pass - last update
about 1 year ago 30,382 pass - last update
about 1 year ago 30,380 pass - last update
about 1 year ago 30,385 pass - last update
about 1 year ago 30,395 pass - last update
about 1 year ago 30,400 pass - last update
about 1 year ago 30,400 pass 11:21 7:49 Running- last update
about 1 year ago 30,420 pass - last update
about 1 year ago 30,428 pass - last update
about 1 year ago 30,429 pass - ๐ณ๐ฟNew Zealand quietone
Let's see what the example will look like. This would go on Drupal deprecation policy โ . I suggest near the end, after 'Configuration schema'.
Twig template
/** * Implements hook_theme(). */ function node_theme() { return [ 'foo_template' => [ 'variables' => ['content' => NULL], 'deprecated' => 'The "foo_template" template is deprecated in drupal:9.2.3 and is removed from drupal:11.0.0. Use "bar_template" instead. See https://www.drupal.org/node/123456', ], ]; }
- Status changed to Needs work
about 1 year ago 8:05am 24 October 2023 - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago 30,440 pass - Status changed to Needs review
about 1 year ago 9:56am 25 October 2023 - Status changed to Needs work
about 1 year ago 9:59am 25 October 2023 - ๐ฌ๐งUnited Kingdom longwave UK
Not quite what I meant - we need some words to explain the
deprecated
key. - last update
about 1 year ago 30,440 pass - Status changed to Needs review
about 1 year ago 9:42am 30 October 2023 - Status changed to Needs work
about 1 year ago 12:05pm 30 October 2023 - ๐ฎ๐ณIndia narendraR Jaipur, India
Looks good to me. Suggested some textual changes.
- Status changed to Needs review
about 1 year ago 12:47pm 30 October 2023 - Status changed to RTBC
about 1 year ago 4:16pm 30 October 2023 - ๐บ๐ธUnited States smustgrave
All threads appear to have been resolved. Think this would be a good one to get in as I imagine some templates could be deprecated before D11 vs just removed.
- last update
about 1 year ago Build Successful - ๐ฎ๐ณIndia narendraR Jaipur, India
+1 as all the points are addressed.
-
lauriii โ
committed 84702133 on 11.x
Issue #3157353 by Utkarsh_33, lauriii, dww, smustgrave, longwave,...
-
lauriii โ
committed 84702133 on 11.x
-
lauriii โ
committed 88f632d4 on 10.2.x
Issue #3157353 by Utkarsh_33, lauriii, dww, smustgrave, longwave,...
-
lauriii โ
committed 88f632d4 on 10.2.x
- Status changed to Fixed
about 1 year ago 6:49pm 31 October 2023 - ๐ซ๐ฎFinland lauriii Finland
- ๐ซ๐ฎFinland lauriii Finland
Filed the follow-up: ๐ Allow marking theme templates as obsolete Active .
- ๐ณ๐ฟNew Zealand quietone
Ah, there is still work to do here. The policy documents have not been updated.
I also think this needs a follow up to change the the key name, 'deprecated' because that sounds like a boolean when it is really a message, so should be 'deprecation_message'. And that would align this with the unfinished issue to create a way to declare a plugin as deprecated. ๐ Create a way to declare a plugin as deprecated Needs work .
- ๐ณ๐ฟNew Zealand quietone
@lauriii, my apologies, I now see the policy update! I don't know why my search failed before.
- ๐ญ๐บHungary Gรกbor Hojtsy Hungary
Please make sure there is an Upgrade Status issue! There is already some hook_theme coverage there thanks to @lauriii I think :) but that would need to be extended now.
- ๐ซ๐ฎFinland lauriii Finland
#40: I agree that
deprecated_message
could be clearer. However, I personally would prefer to keep it as deprecated since that's what we use already for config schema and library definitions. It could be annoying to have to remember when we are usingdeprecated
vsdeprecated_message
. Feel free to open a follow-up issue to discuss further if you feel strongly about this. - ๐ณ๐ฟNew Zealand quietone
#43: Thanks, I didn't realize there was precedence.
Upgrade status issue made, ๐ Add check for deprecated twig template Active
Automatically closed - issue fixed for 2 weeks with no activity.