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
f6e4b9b9
Commit
f6e4b9b9
authored
May 29, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2003328
by crowdcg, tvlooy: Rename Views method render_text() to renderText().
parent
a39c996c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
...s/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
+7
-7
No files found.
core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
View file @
f6e4b9b9
...
...
@@ -19,19 +19,19 @@
*/
/**
* Indicator of the render
_t
ext() method for rendering a single item.
* Indicator of the render
T
ext() method for rendering a single item.
* (If no render_item() is present).
*/
define
(
'VIEWS_HANDLER_RENDER_TEXT_PHASE_SINGLE_ITEM'
,
0
);
/**
* Indicator of the render
_t
ext() method for rendering the whole element.
* Indicator of the render
T
ext() method for rendering the whole element.
* (if no render_item() method is available).
*/
define
(
'VIEWS_HANDLER_RENDER_TEXT_PHASE_COMPLETELY'
,
1
);
/**
* Indicator of the render
_t
ext() method for rendering the empty text.
* Indicator of the render
T
ext() method for rendering the empty text.
*/
define
(
'VIEWS_HANDLER_RENDER_TEXT_PHASE_EMPTY'
,
2
);
...
...
@@ -1139,14 +1139,14 @@ function advanced_render($values) {
$alter
=
$item
+
$this
->
options
[
'alter'
];
$alter
[
'phase'
]
=
VIEWS_HANDLER_RENDER_TEXT_PHASE_SINGLE_ITEM
;
$items
[]
=
$this
->
render
_t
ext
(
$alter
);
$items
[]
=
$this
->
render
T
ext
(
$alter
);
}
$value
=
$this
->
render_items
(
$items
);
}
else
{
$alter
=
array
(
'phase'
=>
VIEWS_HANDLER_RENDER_TEXT_PHASE_COMPLETELY
)
+
$this
->
options
[
'alter'
];
$value
=
$this
->
render
_t
ext
(
$alter
);
$value
=
$this
->
render
T
ext
(
$alter
);
}
if
(
is_array
(
$value
))
{
...
...
@@ -1163,7 +1163,7 @@ function advanced_render($values) {
$alter
[
'alter_text'
]
=
1
;
$alter
[
'text'
]
=
$this
->
options
[
'empty'
];
$alter
[
'phase'
]
=
VIEWS_HANDLER_RENDER_TEXT_PHASE_EMPTY
;
$this
->
last_render
=
$this
->
render
_t
ext
(
$alter
);
$this
->
last_render
=
$this
->
render
T
ext
(
$alter
);
}
}
...
...
@@ -1203,7 +1203,7 @@ function is_value_empty($value, $empty_zero, $no_skip_empty = TRUE) {
* This is separated out as some fields may render lists, and this allows
* each item to be handled individually.
*/
function
render
_t
ext
(
$alter
)
{
public
function
render
T
ext
(
$alter
)
{
$value
=
$this
->
last_render
;
if
(
!
empty
(
$alter
[
'alter_text'
])
&&
$alter
[
'text'
]
!==
''
)
{
...
...
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