Spin-off issue from #3042774-18: Drupal 9 Deprecated Code Report

The class FeedHandlerBase extends the deprecated EntityHandlerBase class. FeedHandlerBase should no longer extend this class and take over relevant parts from EntityHandlerBase, which is in case of Feeds only the traits StringTranslationTrait and DependencySerializationTrait. The module handler is not used by any classes that extend FeedHandlerBase, at least not in the Feeds module.

Class Drupal​\​feeds​\​FeedHandlerBase extends deprecated class Drupal​\​Core​\​Entity​\​EntityHandlerBase. Deprecated in Drupal 8.0.x, will be removed before Drupal 9.0.0.
Implement the container injection pattern of
​\​Drupal​\​Core​\​Entity​\​EntityHandlerInterface::createInstance() to obtain the
module handler service for your class.

Patch will follow.

Comments

MegaChriz created an issue. See original summary.

megachriz’s picture

Status: Active » Needs review
StatusFileSize
new1.24 KB

  • MegaChriz committed ba01a4d on 8.x-3.x
    Issue #3093512 by MegaChriz: Replaced deprecated EntityHandlerBase.
    
megachriz’s picture

Status: Needs review » Fixed

Okay, tests still pass. I think the tests in #3042774-18: Drupal 9 Deprecated Code Report because I forgot DependencySerializationTrait there.

Committed #2.

megachriz’s picture

Status: Fixed » Closed (fixed)

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

kristen pol’s picture

Issue tags: +Drupal 9 compatibility

Per a Slack discussion with Gábor Hojtsy regarding usage of D9 tags (Drupal 9, Drupal 9 compatibility, Drupal 9 readiness, etc.), "Drupal 9 compatibility" should be used for contributed projects that need updating and "Drupal 9" was the old tag for D8 issues before the D9 branch was ready. Doing tag cleanup here based on that discussion.