Skip to content
Snippets Groups Projects

Avoid usage of array_flip().

Merged Youri van Koppen requested to merge issue/feeds-3217262:3217262-avoid_array_flip into 8.x-3.x
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -215,9 +215,10 @@ class FeedType extends ConfigEntityBundleBase implements FeedTypeInterface, Enti
// \Drupal\Core\Entity\EntityType instance which can contain a
// stringTranslation object that is not serializable.
// @see https://www.drupal.org/project/drupal/issues/2893029
$vars = array_flip($vars);
unset($vars['pluginCollection']);
$vars = array_flip($vars);
$key = array_search('pluginCollection', $vars);
if ($key !== FALSE) {
unset($vars[$key]);
}
return $vars;
}
Loading