Remove SourcePluginBase::$mapRowAdded

Created on 2 December 2018, about 6 years ago
Updated 1 July 2023, over 1 year ago

Problem/Motivation

SourcePluginBase has a protected property, called $mapRowAdded, which is never used.

Okay, well, that's not entirely true; it's used in exactly one place -- the very convoluted next() method:

if (!$this->mapRowAdded && ($id_map = $this->idMap->getRowBySource($this->currentSourceIds))) {

Um, yeah...$mapRowAdded's default value is FALSE, and nowhere else in core is that ever changed or touched in any way. I'm convinced that the property is vestigial and not actually doing anything. It's clutter.

Proposed resolution

Remove the property.

Remaining tasks

Patch, review, commit.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

Removed the $mapRowAdded property from \Drupal\migrate\Plugin\migrate\source\SourcePluginBase, as it was not being used for anything.

📌 Task
Status

Closed: duplicate

Version

11.0 🔥

Component
Migration 

Last updated 2 days ago

Created by

🇺🇸United States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024