Skip to content
Snippets Groups Projects
Commit dc73fee5 authored by Chris Leppanen's avatar Chris Leppanen
Browse files

Issue #1460282 by elliotttf, MegaChriz | jday: Fixed Call to undefined method...

Issue #1460282 by elliotttf, MegaChriz | jday: Fixed Call to undefined method FeedsMissingPlugin::entityType() .
parent a9382ed3
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,17 @@
function feeds_rules_event_info() {
$info = array();
$entity_info = entity_get_info();
foreach (feeds_importer_load_all() as $importer) {
$config = $importer->getConfig();
$processor = feeds_plugin($config['processor']['plugin_key'], $importer->id);
// It's possible to get FeedsMissingPlugin here which will break things
// since it doesn't implement FeedsProcessor::entityType().
if (!$processor instanceof FeedsProcessor) {
continue;
}
$entity_type = $processor->entityType();
$label = isset($entity_info[$entity_type]['label']) ? $entity_info[$entity_type]['label'] : $entity_type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment