diff --git a/src/Entity/Facet.php b/src/Entity/Facet.php index 0a3e1a9..18d2ff0 100644 --- a/src/Entity/Facet.php +++ b/src/Entity/Facet.php @@ -478,12 +478,11 @@ class Facet extends ConfigEntityBase implements FacetInterface { if ($widgetQueryType === NULL && count($processorQueryTypes) === 1) { return $this->pickQueryType($query_types, key($processorQueryTypes)); } - // The widget has made a decision and processors have specific needs. + // The widget has made a decision and the processors have not. if ($widgetQueryType !== NULL && count($processorQueryTypes) === 0) { return $this->pickQueryType($query_types, $widgetQueryType); } - // The widget has made a decision, and so have the processors, but it's - // the same. + // The widget has made a decision and the processors have 1, being the same. if ($widgetQueryType !== NULL && count($processorQueryTypes) === 1 && key($processorQueryTypes) === $widgetQueryType) { return $this->pickQueryType($query_types, $widgetQueryType); }