Problem/Motivation

There's functions deprecated for removal in core 10

Proposed resolution

remove the usage, make sure no mentions left

Remaining tasks

review/commit

User interface changes

no

API changes

no

Data model changes

no

Release notes snippet

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andypost created an issue. See original summary.

andypost’s picture

Status: Active » Needs review
FileSize
4.24 KB

Status: Needs review » Needs work

The last submitted patch, 2: 3261244-2.patch, failed testing. View results

andypost’s picture

Status: Needs work » Needs review

can't reproduce locally, re-queued

andypost’s picture

longwave’s picture

Status: Needs review » Needs work

One more to go:

core/modules/layout_builder/src/Element/LayoutBuilder.php
65:      @trigger_error('Calling LayoutBuilder::__construct() with the $messenger argument is deprecated in drupal:9.1.0 and will be removed in drupal:10.0.0. See https://www.drupal.org/node/3152690', E_USER_DEPRECATED);
andypost’s picture

Status: Needs work » Needs review
FileSize
1.77 KB
6 KB

Thank you! fixed)

longwave’s picture

Status: Needs review » Reviewed & tested by the community

Thank you, looks ready now if bot agrees.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 7: 3261244-7.patch, failed testing. View results

andypost’s picture

Status: Needs work » Needs review
FileSize
2.1 KB
8.1 KB

removed legacy test for this constructor arguments

longwave’s picture

Status: Needs review » Reviewed & tested by the community

RTBC for real this time :)

quietone’s picture

Title: Remove deprecated layout_builder.module functions » Remove deprecated layout_builder module functions

There are no deprecations in layout_builder.module but there are in the module, so changing title.

quietone’s picture

$ grep -r "@deprecated" core/* | grep -v "node_modules" | grep -i "layout_builder"
$ grep -r "@group legacy" core/* | grep -v "node_modules" | grep -i "layout_builder"
$ grep -ri getAvailableContexts\(SectionStorageInterface core

Looks good, grep did not find anything.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 10: 3261244-10.patch, failed testing. View results

andypost’s picture

Status: Needs work » Reviewed & tested by the community

bot random failure

quietone’s picture

Checking my review and working on my local process to make sure I check everything. :-)

I applied the patch and re-ran the grep commands.

# grep -r "@deprecated" core | grep -v "node_modules" | grep -i layout_builder
# grep -r "@group legacy" core | grep -v "node_modules" | grep -i layout_builder
# grep -r "@trigger" core | grep -v "node_modules" | grep -i layout_builder
# grep -ri "sectionstoragetrait" core 

For a moment I wondered about the adding of the typehint in the layoutBuilder constructor but then I saw the deprecation warning just below. So that is fine.

Adding credit to longwave.

This looks ready to commit to me. I'll wait for another committer to confirm.

catch’s picture

Last thing here is to check whether deprecations being removed (acutal API changes, not constructor ones and similar) have an issue on https://github.com/mglaman/phpstan-drupal/issues and create one linking to the CR if not. Can be done as part of the commit process. We should start doing that when we add new deprecations in the first place, but doing it on removal was suggested by @xjm as a way to fill in the old gaps. I just did some on #3244802: Remove BC layers in entity system.

Patch looks great to me. Leaving for @quietone to commit.

xjm’s picture

+++ b/core/modules/layout_builder/src/Context/LayoutBuilderContextTrait.php
@@ -30,26 +30,6 @@ protected function contextRepository() {
-   * @see https://www.drupal.org/node/3195121

+++ b/core/modules/layout_builder/src/Element/LayoutBuilder.php
@@ -48,22 +48,10 @@ class LayoutBuilder extends RenderElement implements ContainerFactoryPluginInter
-      @trigger_error('Calling LayoutBuilder::__construct() with the $messenger argument is deprecated in drupal:9.1.0 and will be removed in drupal:10.0.0. See https://www.drupal.org/node/3152690', E_USER_DEPRECATED);


+++ /dev/null
@@ -1,53 +0,0 @@
- * @see https://www.drupal.org/node/3091432

I think these are the three unique CRs removed by the patch. I checked and this patch removes all references to those three CRs.

  • quietone committed 39726b6 on 10.0.x
    Issue #3261244 by andypost, longwave: Remove deprecated layout_builder...
quietone’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 10.0.x.

Thank you!

Adding credit to catch and xjm for mentoring support.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.