Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
303
Merge Requests
303
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
421bee5b
Commit
421bee5b
authored
May 28, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2003312
by ggroves: Rename Views method row_style_options() to rowStyleOptions().
parent
dc44c604
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
core/modules/comment/lib/Drupal/comment/Plugin/views/wizard/Comment.php
...omment/lib/Drupal/comment/Plugin/views/wizard/Comment.php
+2
-2
core/modules/node/lib/Drupal/node/Plugin/views/wizard/Node.php
...modules/node/lib/Drupal/node/Plugin/views/wizard/Node.php
+2
-2
core/modules/node/lib/Drupal/node/Plugin/views/wizard/NodeRevision.php
...node/lib/Drupal/node/Plugin/views/wizard/NodeRevision.php
+3
-3
core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
...lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
+3
-3
No files found.
core/modules/comment/lib/Drupal/comment/Plugin/views/wizard/Comment.php
View file @
421bee5b
...
...
@@ -65,9 +65,9 @@ class Comment extends WizardPluginBase {
);
/**
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::row
_style_o
ptions().
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::row
StyleO
ptions().
*/
protected
function
row
_style_o
ptions
()
{
protected
function
row
StyleO
ptions
()
{
$options
=
array
();
$options
[
'comment'
]
=
t
(
'comments'
);
$options
[
'fields'
]
=
t
(
'fields'
);
...
...
core/modules/node/lib/Drupal/node/Plugin/views/wizard/Node.php
View file @
421bee5b
...
...
@@ -72,9 +72,9 @@ public function getAvailableSorts() {
}
/**
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::row
_style_o
ptions().
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::row
StyleO
ptions().
*/
protected
function
row
_style_o
ptions
()
{
protected
function
row
StyleO
ptions
()
{
$options
=
array
();
$options
[
'teasers'
]
=
t
(
'teasers'
);
$options
[
'full_posts'
]
=
t
(
'full posts'
);
...
...
core/modules/node/lib/Drupal/node/Plugin/views/wizard/NodeRevision.php
View file @
421bee5b
...
...
@@ -71,12 +71,12 @@ class NodeRevision extends WizardPluginBase {
);
/**
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::row
_style_o
ptions().
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::row
StyleO
ptions().
*
* Node revisions do not support full posts or teasers, so remove them.
*/
protected
function
row
_style_o
ptions
()
{
$options
=
parent
::
row
_style_o
ptions
();
protected
function
row
StyleO
ptions
()
{
$options
=
parent
::
row
StyleO
ptions
();
unset
(
$options
[
'teasers'
]);
unset
(
$options
[
'full_posts'
]);
return
$options
;
...
...
core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
View file @
421bee5b
...
...
@@ -510,7 +510,7 @@ protected function build_form_style(array &$form, array &$form_state, $type) {
$style
=
$style_form
[
'style_plugin'
][
'#default_value'
];
$style_plugin
=
Views
::
pluginManager
(
'style'
)
->
createInstance
(
$style
);
if
(
isset
(
$style_plugin
)
&&
$style_plugin
->
usesRowPlugin
())
{
$options
=
$this
->
row
_style_o
ptions
();
$options
=
$this
->
row
StyleO
ptions
();
$style_form
[
'row_plugin'
]
=
array
(
'#type'
=>
'select'
,
'#title'
=>
t
(
'of'
),
...
...
@@ -542,7 +542,7 @@ protected function build_form_style(array &$form, array &$form_state, $type) {
* @return array
* Returns the plugin names available for the base table of the wizard.
*/
protected
function
row
_style_o
ptions
()
{
protected
function
row
StyleO
ptions
()
{
// Get all available row plugins by default.
$options
=
views_fetch_plugin_names
(
'row'
,
'normal'
,
array
(
$this
->
base_table
));
return
$options
;
...
...
@@ -962,7 +962,7 @@ protected function page_display_options(array $form, array &$form_state) {
$display_options
[
'style'
]
=
array
(
'type'
=>
$page
[
'style'
][
'style_plugin'
]);
// Not every style plugin supports row style plugins.
// Make sure that the selected row plugin is a valid one.
$options
=
$this
->
row
_style_o
ptions
();
$options
=
$this
->
row
StyleO
ptions
();
$display_options
[
'row'
]
=
array
(
'type'
=>
(
isset
(
$page
[
'style'
][
'row_plugin'
])
&&
isset
(
$options
[
$page
[
'style'
][
'row_plugin'
]]))
?
$page
[
'style'
][
'row_plugin'
]
:
'fields'
);
// If the specific 0 items per page, use no pager.
...
...
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