diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php index 512f407..450dad3 100644 --- a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php +++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php @@ -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_empty()) { + if (!empty($this->view->result) && $this->view->style_plugin->evenEmpty()) { return $this->view->style_plugin->render($this->view->result); } return ''; diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/style/EntityReference.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/style/EntityReference.php index e2df530..4a2fc08 100644 --- a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/style/EntityReference.php +++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/style/EntityReference.php @@ -102,9 +102,9 @@ public function render() { } /** - * Overrides \Drupal\views\Plugin\views\style\StylePluginBase\StylePluginBase::even_empty(). + * Overrides \Drupal\views\Plugin\views\style\StylePluginBase\StylePluginBase::evenEmpty(). */ - function even_empty() { + function evenEmpty() { return TRUE; } } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php index 2fe7cfa..3be0465 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php @@ -212,7 +212,7 @@ function tokenize_value($value, $row_index) { /** * Should the output of the style plugin be rendered even if it's a empty view. */ - function even_empty() { + function evenEmpty() { return !empty($this->definition['even empty']); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/style/Table.php b/core/modules/views/lib/Drupal/views/Plugin/views/style/Table.php index fa868c7..588b70c 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/style/Table.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/Table.php @@ -387,8 +387,8 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function even_empty() { - return parent::even_empty() || !empty($this->options['empty_table']); + function evenEmpty() { + return parent::evenEmpty() || !empty($this->options['empty_table']); } function wizard_submit(&$form, &$form_state, WizardInterface $wizard, &$display_options, $display_type) { diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc index e987ffd..091f91d 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -47,7 +47,7 @@ function template_preprocess_views_view(&$vars) { $view = $vars['view']; - $vars['rows'] = (!empty($view->result) || $view->style_plugin->even_empty()) ? $view->style_plugin->render($view->result) : ''; + $vars['rows'] = (!empty($view->result) || $view->style_plugin->evenEmpty()) ? $view->style_plugin->render($view->result) : ''; // Force a render array so CSS/JS can be added. if (!is_array($vars['rows'])) { $vars['rows'] = array('#markup' => $vars['rows']);