You are here

public static function FeedImport::getHashManagers in Feed Import 7.3

Gets all hash manager classes used by feeds.

Return value

array An array of classes

1 call to FeedImport::getHashManagers()
FeedImport::removeEntityHashes in feed_import_base/inc/feed_import.inc
Removes entity hashes.

File

feed_import_base/inc/feed_import.inc, line 475
This file contains Feed Import helpers.

Class

FeedImport
This class provides helper functions for feed import.

Code

public static function getHashManagers() {
  static $hm = array();
  if (!$hm) {
    foreach (static::loadAllFeeds() as $feed) {
      if (!empty($feed->settings['hashes']['class'])) {
        $hm[] = $feed->settings['hashes']['class'];
      }
    }
    $hm = array_unique($hm);
  }
  return $hm;
}