Skip to content
Snippets Groups Projects
Commit b29522bd authored by Yuriy Gerasimov's avatar Yuriy Gerasimov Committed by Nikolay Ignatov
Browse files

Issue #3072733 by ygerasimov: Notice in ElasticsearchViewsMarkup

parent 3d01fe12
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
namespace Drupal\elasticsearch_connector_views\Plugin\views\field;
use Drupal\views\Plugin\views\field\Markup;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\ViewExecutable;
/**
* Provides a default handler for fields in Search API Views.
......@@ -13,4 +15,14 @@ use Drupal\views\Plugin\views\field\Markup;
*/
class ElasticsearchViewsMarkup extends Markup {
/**
* {@inheritdoc}
*/
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
if (!isset($this->definition['format'])) {
$this->definition['format'] = filter_default_format();
}
parent::init($view, $display, $options);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment