Commit e9419f9c authored by StryKaizer's avatar StryKaizer Committed by borisson_

Issue #2913245 by borisson_, StryKaizer: Disable translate entity processor when not relevant

parent 2fcccd66
......@@ -136,4 +136,17 @@ class TranslateEntityProcessor extends ProcessorPluginBase implements BuildProce
return $results;
}
/**
* {@inheritdoc}
*/
public function supportsFacet(FacetInterface $facet) {
$data_definition = $facet->getDataDefinition();
$property_definitions = $data_definition->getPropertyDefinitions();
foreach ($property_definitions as $k => $definition) {
if ($definition instanceof DataReferenceDefinitionInterface && $definition->getDataType() === 'entity_reference') {
return TRUE;
}};
return FALSE;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment