Issue #2125083 by andypost, cosmicdreams, benjy, YesCT | bdone: Remove unused $keep variable from migrate sources.

8.0.x
Alex Pott 2014-08-11 21:50:47 -05:00
parent 9d777775b1
commit 758267ea70
5 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ class Comment extends DrupalSqlBase {
/**
* {@inheritdoc}
*/
public function prepareRow(Row $row, $keep = TRUE) {
public function prepareRow(Row $row) {
if ($this->variableGet('comment_subject_field_' . $row->getSourceProperty('type'), 1)) {
// Comment subject visible.
$row->setSourceProperty('field_name', 'comment');
@ -72,7 +72,7 @@ class Comment extends DrupalSqlBase {
'name' => $this->t("The comment author's name. Uses {users}.name if the user is logged in, otherwise uses the value typed into the comment form."),
'mail' => $this->t("The comment author's email address from the comment form, if user is anonymous, and the 'Anonymous users may/must leave their contact information' setting is turned on."),
'homepage' => $this->t("The comment author's home page address from the comment form, if user is anonymous, and the 'Anonymous users may/must leave their contact information' setting is turned on."),
'type' => $this->t("The {node}.type to which this comment is a reply.")
'type' => $this->t("The {node}.type to which this comment is a reply."),
);
}

View File

@ -68,7 +68,7 @@ class Field extends DrupalSqlBase {
/**
* {@inheritdoc}
*/
public function prepareRow(Row $row, $keep = TRUE) {
public function prepareRow(Row $row) {
// Unserialize data.
$global_settings = unserialize($row->getSourceProperty('global_settings'));
$widget_settings = unserialize($row->getSourceProperty('widget_settings'));

View File

@ -72,7 +72,7 @@ class FieldInstance extends DrupalSqlBase {
/**
* {@inheritdoc}
*/
public function prepareRow(Row $row, $keep = TRUE) {
public function prepareRow(Row $row) {
// Unserialize data.
$widget_settings = unserialize($row->getSourceProperty('widget_settings'));
$display_settings = unserialize($row->getSourceProperty('display_settings'));

View File

@ -67,7 +67,7 @@ class Role extends DrupalSqlBase {
/**
* {@inheritdoc}
*/
public function prepareRow(Row $row, $keep = TRUE) {
public function prepareRow(Row $row) {
$rid = $row->getSourceProperty('rid');
$permissions = $this->select('permission', 'p')
->fields('p', array('perm'))

View File

@ -52,7 +52,7 @@ class User extends DrupalSqlBase implements SourceEntityInterface {
/**
* {@inheritdoc}
*/
public function prepareRow(Row $row, $keep = TRUE) {
public function prepareRow(Row $row) {
// User roles.
$roles = $this->select('users_roles', 'ur')
->fields('ur', array('rid'))