TamperPluginCollection.php in Feeds Tamper 8.2
File
src/TamperPluginCollection.php
View source
<?php
namespace Drupal\feeds_tamper;
use Drupal\tamper\TamperPluginCollection as TamperPluginCollectionBase;
class TamperPluginCollection extends TamperPluginCollectionBase {
protected $pluginKey = 'plugin';
public function sortHelper($aID, $bID) {
$a = $this
->get($aID)
->getSetting('weight');
$b = $this
->get($bID)
->getSetting('weight');
if ($a != $b) {
return $a < $b ? -1 : 1;
}
return parent::sortHelper($aID, $bID);
}
}