diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php index a577c58fc626..80f97ae5a902 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php @@ -916,7 +916,7 @@ abstract class DisplayPluginBase extends PluginBase { * * @param bool $groupable_only * (optional) TRUE to only return an array of field labels from handlers - * that support the use_string_group_by method, defaults to FALSE. + * that support the useStringGroupBy method, defaults to FALSE. * * @return array * An array of applicable field options, keyed by ID. @@ -928,7 +928,7 @@ abstract class DisplayPluginBase extends PluginBase { } foreach ($this->getHandlers('field') as $id => $handler) { - if ($groupable_only && !$handler->use_string_group_by()) { + if ($groupable_only && !$handler->useStringGroupBy()) { // Continue to next handler if it's not groupable. continue; } 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 843f1339dad3..25da719b2338 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 @@ -402,7 +402,7 @@ abstract class FieldPluginBase extends HandlerBase { * @return bool * TRUE if this field handler is groupable, otherwise FALSE. */ - function use_string_group_by() { + public function useStringGroupBy() { return TRUE; } @@ -1672,3 +1672,4 @@ If you would like to have the characters \'[\' and \']\' use the html entity cod /** * @} */ +