namespace Drupal\views\Plugin\views\display;
+use Drupal\Core\Database\Query\Condition;
+
/**
* The plugin that handles an EntityReference display.
*
}
/**
- * {@inheritdoc}
+ * Builds the view result as a renderable array.
+ *
+ * @return array
+ * Renderable array or empty array.
*/
public function render() {
if (!empty($this->view->result) && $this->view->style_plugin->evenEmpty()) {
return $this->view->style_plugin->render($this->view->result);
}
- return '';
+ return [];
}
/**
}
// Multiple search fields are OR'd together.
- $conditions = db_or();
+ $conditions = new Condition('OR');
// Build the condition using the selected search fields.
foreach ($style_options['options']['search_fields'] as $field_id) {