public static function FeedImport::getFieldsCompareFunctions in Feed Import 8
Returns field compare functions.
1 call to FeedImport::getFieldsCompareFunctions()
- FeedImport::setProcessorSettings in feed_import_base/
src/ FeedImport.php - Sets processor settings.
File
- feed_import_base/
src/ FeedImport.php, line 169
Class
- FeedImport
- This class provides helper functions for feed import.
Namespace
Drupal\feed_import_baseCode
public static function getFieldsCompareFunctions() {
$funcs = \Drupal::moduleHandler()
->invokeAll('feed_import_field_compare_functions');
foreach ($funcs as $type => &$f) {
if (is_array($f)) {
for ($i = 0, $max = count($f); $i < $max; $i++) {
if (is_callable($f[$i])) {
$f = $f[$i];
continue 2;
}
}
unset($funcs[$type]);
}
elseif (!is_callable($f)) {
unset($funcs[$type]);
}
}
return $funcs;
}