Problem/Motivation

See https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...

public function getStorage($entity_type);

getStorage() only has 1 parameter, but it's being called with 2.

src/Plugin/ImporterBase.php L113

$entity = $this->entityTypeManager->getStorage($this->configuration['entity_type'], $this->configuration['entity_type_bundle'])->create($content);

Proposed resolution

Remove the second parameter. Bundle is already supplied by the $content variable and is respected by the create() method.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

pingers created an issue. See original summary.

pingers’s picture

Assigned: pingers » Unassigned
Status: Active » Needs review
StatusFileSize
new616 bytes

Here's a patch.

mahtab_alam’s picture

StatusFileSize
new770 bytes
pingers’s picture

I'm sorry, why do we need a patch with a commented out line of code? This is why we use git.

mikejw’s picture

patch in #2 looks good.

lashabp’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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