summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2013-05-29 05:06:16 (GMT)
committerAlex Pott2013-05-29 05:06:16 (GMT)
commit960eb8280f6064bed9c1d8bfc193d13d4ec8d974 (patch)
treeb02d616b8f33a41c94043a22c3031ea9eb8c3537
parentdf1336840173145f0d862f3a7c3eb206678b1f97 (diff)
Issue #2002480 by illeace, jeroen12345: Rename Views method element_wrapper_type() to elementWrapperType().
-rw-r--r--core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php2
-rw-r--r--core/modules/views/views.theme.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
index 63051bb..ad4fa46 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
@@ -246,7 +246,7 @@ abstract class FieldPluginBase extends HandlerBase {
/**
* Return an HTML element for the wrapper based upon the field's element type.
*/
- function element_wrapper_type($none_supported = FALSE, $default_empty = FALSE) {
+ public function elementWrapperType($none_supported = FALSE, $default_empty = FALSE) {
if ($none_supported) {
if ($this->options['element_wrapper_type'] === '0') {
return 0;
diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc
index 42dd2f6..35cae6c 100644
--- a/core/modules/views/views.theme.inc
+++ b/core/modules/views/views.theme.inc
@@ -253,7 +253,7 @@ function template_preprocess_views_view_fields(&$vars) {
$object->class = drupal_clean_css_identifier($id);
$previous_inline = $object->inline;
- $object->inline_html = $object->handler->element_wrapper_type(TRUE, TRUE);
+ $object->inline_html = $object->handler->elementWrapperType(TRUE, TRUE);
if ($object->inline_html === '' && $vars['options']['default_field_elements']) {
$object->inline_html = $object->inline ? 'span' : 'div';
}