Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
34e099a1
Commit
34e099a1
authored
May 29, 2013
by
alexpott
Browse files
Issue
#2002376
by hugo.lallo: Rename Views method build_form_style() to buildFormStyle().
parent
6c765be3
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/modules/comment/lib/Drupal/comment/Plugin/views/wizard/Comment.php
View file @
34e099a1
...
...
@@ -74,8 +74,8 @@ protected function rowStyleOptions() {
return
$options
;
}
protected
function
build
_f
orm
_s
tyle
(
array
&
$form
,
array
&
$form_state
,
$type
)
{
parent
::
build
_f
orm
_s
tyle
(
$form
,
$form_state
,
$type
);
protected
function
build
F
orm
S
tyle
(
array
&
$form
,
array
&
$form_state
,
$type
)
{
parent
::
build
F
orm
S
tyle
(
$form
,
$form_state
,
$type
);
$style_form
=&
$form
[
'displays'
][
$type
][
'options'
][
'style'
];
// Some style plugins don't support row plugins so stop here if that's the
// case.
...
...
core/modules/node/lib/Drupal/node/Plugin/views/wizard/Node.php
View file @
34e099a1
...
...
@@ -94,8 +94,8 @@ protected function rowStyleOptions() {
* @param string $type
* The display ID (e.g. 'page' or 'block').
*/
protected
function
build
_f
orm
_s
tyle
(
array
&
$form
,
array
&
$form_state
,
$type
)
{
parent
::
build
_f
orm
_s
tyle
(
$form
,
$form_state
,
$type
);
protected
function
build
F
orm
S
tyle
(
array
&
$form
,
array
&
$form_state
,
$type
)
{
parent
::
build
F
orm
S
tyle
(
$form
,
$form_state
,
$type
);
$style_form
=&
$form
[
'displays'
][
$type
][
'options'
][
'style'
];
// Some style plugins don't support row plugins so stop here if that's the
// case.
...
...
core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
View file @
34e099a1
...
...
@@ -263,7 +263,7 @@ function build_form(array $form, array &$form_state) {
// AJAX.
views_ui_add_ajax_trigger
(
$style_form
,
'style_plugin'
,
array
(
'displays'
,
'page'
,
'options'
));
$this
->
build
_f
orm
_s
tyle
(
$form
,
$form_state
,
'page'
);
$this
->
build
F
orm
S
tyle
(
$form
,
$form_state
,
'page'
);
$form
[
'displays'
][
'page'
][
'options'
][
'items_per_page'
]
=
array
(
'#title'
=>
t
(
'Items to display'
),
'#type'
=>
'number'
,
...
...
@@ -400,7 +400,7 @@ function build_form(array $form, array &$form_state) {
// AJAX.
views_ui_add_ajax_trigger
(
$style_form
,
'style_plugin'
,
array
(
'displays'
,
'block'
,
'options'
));
$this
->
build
_f
orm
_s
tyle
(
$form
,
$form_state
,
'block'
);
$this
->
build
F
orm
S
tyle
(
$form
,
$form_state
,
'block'
);
$form
[
'displays'
][
'block'
][
'options'
][
'items_per_page'
]
=
array
(
'#title'
=>
t
(
'Items per page'
),
'#type'
=>
'number'
,
...
...
@@ -505,7 +505,7 @@ public static function getSelected($form_state, $parents, $default_value, $eleme
* @param string $type
* The display ID (e.g. 'page' or 'block').
*/
protected
function
build
_f
orm
_s
tyle
(
array
&
$form
,
array
&
$form_state
,
$type
)
{
protected
function
build
F
orm
S
tyle
(
array
&
$form
,
array
&
$form_state
,
$type
)
{
$style_form
=&
$form
[
'displays'
][
$type
][
'options'
][
'style'
];
$style
=
$style_form
[
'style_plugin'
][
'#default_value'
];
$style_plugin
=
Views
::
pluginManager
(
'style'
)
->
createInstance
(
$style
);
...
...
Write
Preview
Supports
Markdown
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