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
547031cb
Commit
547031cb
authored
May 29, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2002904
by Psikik: Rename Views method get_elements() to getElements().
parent
f013f081
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
...s/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
+4
-4
core/modules/views/lib/Drupal/views/Tests/Handler/FieldWebTest.php
...les/views/lib/Drupal/views/Tests/Handler/FieldWebTest.php
+1
-1
No files found.
core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
View file @
547031cb
...
...
@@ -270,7 +270,7 @@ public function elementWrapperType($none_supported = FALSE, $default_empty = FAL
* elements available, though this seems like it would be an incredibly
* rare occurence.
*/
function
get
_e
lements
()
{
public
function
get
E
lements
()
{
static
$elements
=
NULL
;
if
(
!
isset
(
$elements
))
{
// @todo Add possible html5 elements.
...
...
@@ -546,7 +546,7 @@ public function buildOptionsForm(&$form, &$form_state) {
);
$form
[
'element_type'
]
=
array
(
'#title'
=>
t
(
'HTML element'
),
'#options'
=>
$this
->
get
_e
lements
(),
'#options'
=>
$this
->
get
E
lements
(),
'#type'
=>
'select'
,
'#default_value'
=>
$this
->
options
[
'element_type'
],
'#description'
=>
t
(
'Choose the HTML element to wrap around this field, e.g. H1, H2, etc.'
),
...
...
@@ -591,7 +591,7 @@ public function buildOptionsForm(&$form, &$form_state) {
);
$form
[
'element_label_type'
]
=
array
(
'#title'
=>
t
(
'Label HTML element'
),
'#options'
=>
$this
->
get
_e
lements
(
FALSE
),
'#options'
=>
$this
->
get
E
lements
(
FALSE
),
'#type'
=>
'select'
,
'#default_value'
=>
$this
->
options
[
'element_label_type'
],
'#description'
=>
t
(
'Choose the HTML element to wrap around this label, e.g. H1, H2, etc.'
),
...
...
@@ -635,7 +635,7 @@ public function buildOptionsForm(&$form, &$form_state) {
);
$form
[
'element_wrapper_type'
]
=
array
(
'#title'
=>
t
(
'Wrapper HTML element'
),
'#options'
=>
$this
->
get
_e
lements
(
FALSE
),
'#options'
=>
$this
->
get
E
lements
(
FALSE
),
'#type'
=>
'select'
,
'#default_value'
=>
$this
->
options
[
'element_wrapper_type'
],
'#description'
=>
t
(
'Choose the HTML element to wrap around this field and label, e.g. H1, H2, etc. This may not be used if the field and label are not rendered together, such as with a table.'
),
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/FieldWebTest.php
View file @
547031cb
...
...
@@ -405,7 +405,7 @@ public function testFieldClasses() {
}
// Tests the available html elements.
$element_types
=
$id_field
->
get
_e
lements
();
$element_types
=
$id_field
->
get
E
lements
();
$expected_elements
=
array
(
''
,
0
,
...
...
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