As this l method \Drupal::l going to be deprecated , please replace this from the code base.

Comments

Pradnya Pingat created an issue. See original summary.

Pradnya Pingat’s picture

Assigned: Pradnya Pingat » Unassigned
Status: Active » Needs review
StatusFileSize
new1.41 KB

Patch Added.

miro_dietiker’s picture

Title: Removed deprecated method l from code base » Removed deprecated method calls from code base
Status: Needs review » Needs work

Yeah agree, but we like to do non-functional clean ups in a combined patch.

So this issue would need to be more general, such as covering all/most deprecated calls.
From quickly checking phpcs with PHPStorm, i see there are more than 30 other deprecated calls.

ginovski’s picture

Assigned: Unassigned » ginovski
Status: Needs work » Needs review
StatusFileSize
new23.02 KB
new24.28 KB

Removed all deprecated methods, only 1 left (entityManager->getViewModes(), there is still no replacement for this 1).

johnchque’s picture

Status: Needs review » Needs work
+++ b/src/Plugin/diff/Layout/SplitFieldsDiffLayout.php
@@ -80,7 +80,7 @@ class SplitFieldsDiffLayout extends DiffLayoutBase {
-      $container->get('entity.manager'),
+      $container->get('entity_type.manager'),

If you gonna change this, you should also change the variable name that is set in __construct

johnchque’s picture

Status: Needs work » Reviewed & tested by the community

Actually those changes were made.

miro_dietiker’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -drupal8

Needs a reroll after other commits.

ginovski’s picture

Status: Needs work » Needs review
StatusFileSize
new23.52 KB

Rerolled

Status: Needs review » Needs work

The last submitted patch, 8: removed_deprecated-2803661-8.patch, failed testing.

tduong’s picture

Assigned: ginovski » tduong

Ginovski is off, taking over this issue.

tduong’s picture

Status: Needs work » Needs review
StatusFileSize
new21.98 KB
new32.13 KB

Changed some construct variable name convetion, fixed some Link imports, improved a bit the test about some repeating code, and tried to remove some unrelated changes I made.

johnchque’s picture

Status: Needs review » Reviewed & tested by the community

Thank you. :)

  • miro_dietiker committed 3248f13 on 8.x-1.x authored by tduong
    Issue #2803661 by Ginovski, tduong: Removed deprecated method calls from...
miro_dietiker’s picture

Status: Reviewed & tested by the community » Fixed

Great, committing to avoid further rerolls and conflicts with other commits...

Status: Fixed » Closed (fixed)

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