Problem/Motivation

Passing the entity.manager service to ContentEntityForm::__construct() is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. Pass the entity.repository service instead. See https://www.drupal.org/node/2549139.

Proposed resolution

Replace deprecated @entity.manager in FeedForm

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thalles created an issue. See original summary.

thalles’s picture

MegaChriz’s picture

Thanks for the patch! There were some coding standard issues with it, fixed this in attached patch. I also changed a few other things in FeedForm, for example I removed a piece of code that was there for compatibility with Drupal 8.2, a core version Feeds doesn't support anymore.

MegaChriz’s picture

Remove import of Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException, since the D8.2 compatibility check was removed.

  • MegaChriz committed b41463e on 8.x-3.x authored by thalles
    Issue #3104631 by thalles, MegaChriz: Replaced deprecated @entity....
MegaChriz’s picture

Status: Needs review » Fixed

Committed #4.

Status: Fixed » Closed (fixed)

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