Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
c4e15352
Commit
c4e15352
authored
Jun 05, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2002486
by crowdcg, shixish: Rename Views method even_empty() to evenEmpty().
parent
7731380b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php
...entity_reference/Plugin/views/display/EntityReference.php
+1
-1
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/style/EntityReference.php
...l/entity_reference/Plugin/views/style/EntityReference.php
+2
-2
core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php
...s/lib/Drupal/views/Plugin/views/style/StylePluginBase.php
+1
-1
core/modules/views/lib/Drupal/views/Plugin/views/style/Table.php
...dules/views/lib/Drupal/views/Plugin/views/style/Table.php
+2
-2
core/modules/views/views.theme.inc
core/modules/views/views.theme.inc
+1
-1
No files found.
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php
View file @
c4e15352
...
...
@@ -99,7 +99,7 @@ public function execute() {
* Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::render().
*/
public
function
render
()
{
if
(
!
empty
(
$this
->
view
->
result
)
&&
$this
->
view
->
style_plugin
->
even
_e
mpty
())
{
if
(
!
empty
(
$this
->
view
->
result
)
&&
$this
->
view
->
style_plugin
->
even
E
mpty
())
{
return
$this
->
view
->
style_plugin
->
render
(
$this
->
view
->
result
);
}
return
''
;
...
...
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/style/EntityReference.php
View file @
c4e15352
...
...
@@ -102,9 +102,9 @@ public function render() {
}
/**
*
Overrides \Drupal\views\Plugin\views\style\StylePluginBase\StylePluginBase::even_empty().
*
{@inheritdoc}
*/
function
even
_e
mpty
()
{
public
function
even
E
mpty
()
{
return
TRUE
;
}
}
core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php
View file @
c4e15352
...
...
@@ -224,7 +224,7 @@ public function tokenizeValue($value, $row_index) {
/**
* Should the output of the style plugin be rendered even if it's a empty view.
*/
function
even
_e
mpty
()
{
public
function
even
E
mpty
()
{
return
!
empty
(
$this
->
definition
[
'even empty'
]);
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/style/Table.php
View file @
c4e15352
...
...
@@ -387,8 +387,8 @@ public function buildOptionsForm(&$form, &$form_state) {
);
}
function
even
_e
mpty
()
{
return
parent
::
even
_e
mpty
()
||
!
empty
(
$this
->
options
[
'empty_table'
]);
public
function
even
E
mpty
()
{
return
parent
::
even
E
mpty
()
||
!
empty
(
$this
->
options
[
'empty_table'
]);
}
public
function
wizardSubmit
(
&
$form
,
&
$form_state
,
WizardInterface
$wizard
,
&
$display_options
,
$display_type
)
{
...
...
core/modules/views/views.theme.inc
View file @
c4e15352
...
...
@@ -54,7 +54,7 @@ function template_preprocess_views_view(&$vars) {
$view
=
$vars
[
'view'
];
$vars
[
'rows'
]
=
(
!
empty
(
$view
->
result
)
||
$view
->
style_plugin
->
even
_e
mpty
())
?
$view
->
style_plugin
->
render
(
$view
->
result
)
:
array
();
$vars
[
'rows'
]
=
(
!
empty
(
$view
->
result
)
||
$view
->
style_plugin
->
even
E
mpty
())
?
$view
->
style_plugin
->
render
(
$view
->
result
)
:
array
();
// Force a render array so CSS/JS can be added.
if
(
!
is_array
(
$vars
[
'rows'
]))
{
$vars
[
'rows'
]
=
array
(
'#markup'
=>
$vars
[
'rows'
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment