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
89f15d22
Commit
89f15d22
authored
May 29, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2002946
by mari3.14, malcomio: Rename Views method lgtm() to useStringGroupBy().
parent
e63a3096
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
...b/Drupal/views/Plugin/views/display/DisplayPluginBase.php
+2
-2
core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
...s/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
+2
-1
No files found.
core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
View file @
89f15d22
...
...
@@ -916,7 +916,7 @@ public function getHandlers($type) {
*
* @param bool $groupable_only
* (optional) TRUE to only return an array of field labels from handlers
* that support the use
_s
tring
_g
roup
_b
y method, defaults to FALSE.
* that support the use
S
tring
G
roup
B
y method, defaults to FALSE.
*
* @return array
* An array of applicable field options, keyed by ID.
...
...
@@ -928,7 +928,7 @@ public function getFieldLabels($groupable_only = FALSE) {
}
foreach
(
$this
->
getHandlers
(
'field'
)
as
$id
=>
$handler
)
{
if
(
$groupable_only
&&
!
$handler
->
use
_s
tring
_g
roup
_b
y
())
{
if
(
$groupable_only
&&
!
$handler
->
use
S
tring
G
roup
B
y
())
{
// Continue to next handler if it's not groupable.
continue
;
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
View file @
89f15d22
...
...
@@ -402,7 +402,7 @@ function get_value($values, $field = NULL) {
* @return bool
* TRUE if this field handler is groupable, otherwise FALSE.
*/
function
use
_s
tring
_g
roup
_b
y
()
{
public
function
use
S
tring
G
roup
B
y
()
{
return
TRUE
;
}
...
...
@@ -1672,3 +1672,4 @@ public static function trimText($alter, $value) {
/**
* @}
*/
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