Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
elasticsearch_connector
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
elasticsearch_connector
Commits
b29522bd
Commit
b29522bd
authored
Aug 6, 2019
by
Yuriy Gerasimov
Committed by
Nikolay Ignatov
Aug 6, 2019
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3072733
by ygerasimov: Notice in ElasticsearchViewsMarkup
parent
3d01fe12
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/elasticsearch_connector_views/src/Plugin/views/field/ElasticsearchViewsMarkup.php
+12
-0
12 additions, 0 deletions
...views/src/Plugin/views/field/ElasticsearchViewsMarkup.php
with
12 additions
and
0 deletions
modules/elasticsearch_connector_views/src/Plugin/views/field/ElasticsearchViewsMarkup.php
+
12
−
0
View file @
b29522bd
...
...
@@ -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
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment