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
f1ba4094
Commit
f1ba4094
authored
Jun 05, 2013
by
alexpott
Browse files
Issue
#2002894
by crowdcg, jibran: Rename Views method get_argument() to getArgument().
parent
1bf078e7
Changes
10
Hide whitespace changes
Inline
Side-by-side
core/modules/node/lib/Drupal/node/Plugin/views/argument_default/Node.php
View file @
f1ba4094
...
...
@@ -24,7 +24,7 @@
*/
class
Node
extends
ArgumentDefaultPluginBase
{
function
get
_a
rgument
()
{
public
function
get
A
rgument
()
{
foreach
(
range
(
1
,
3
)
as
$i
)
{
$node
=
menu_get_object
(
'node'
,
$i
);
if
(
!
empty
(
$node
))
{
...
...
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument_default/Tid.php
View file @
f1ba4094
...
...
@@ -117,7 +117,7 @@ public function submitOptionsForm(&$form, &$form_state, &$options = array()) {
$options
[
'vids'
]
=
array_filter
(
$options
[
'vids'
]);
}
function
get
_a
rgument
()
{
public
function
get
A
rgument
()
{
// Load default argument from taxonomy page.
if
(
!
empty
(
$this
->
options
[
'term_page'
]))
{
if
(
arg
(
0
)
==
'taxonomy'
&&
arg
(
1
)
==
'term'
&&
is_numeric
(
arg
(
2
)))
{
...
...
core/modules/user/lib/Drupal/user/Plugin/views/argument_default/CurrentUser.php
View file @
f1ba4094
...
...
@@ -24,7 +24,7 @@
*/
class
CurrentUser
extends
ArgumentDefaultPluginBase
{
function
get
_a
rgument
()
{
public
function
get
A
rgument
()
{
global
$user
;
return
$user
->
uid
;
}
...
...
core/modules/user/lib/Drupal/user/Plugin/views/argument_default/User.php
View file @
f1ba4094
...
...
@@ -37,7 +37,7 @@ public function buildOptionsForm(&$form, &$form_state) {
);
}
function
get
_a
rgument
()
{
public
function
get
A
rgument
()
{
foreach
(
range
(
1
,
3
)
as
$i
)
{
$user
=
menu_get_object
(
'user'
,
$i
);
if
(
!
empty
(
$user
))
{
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
View file @
f1ba4094
...
...
@@ -744,7 +744,7 @@ function hasDefaultArgument() {
public
function
getDefaultArgument
()
{
$plugin
=
$this
->
getPlugin
(
'argument_default'
);
if
(
$plugin
)
{
return
$plugin
->
get
_a
rgument
();
return
$plugin
->
get
A
rgument
();
}
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument_default/ArgumentDefaultPluginBase.php
View file @
f1ba4094
...
...
@@ -34,7 +34,7 @@ abstract class ArgumentDefaultPluginBase extends PluginBase {
*
* This needs to be overridden by every default argument handler to properly do what is needed.
*/
function
get
_a
rgument
()
{
}
public
function
get
A
rgument
()
{
}
/**
* Sets the parent argument this plugin is associated with.
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Fixed.php
View file @
f1ba4094
...
...
@@ -41,7 +41,7 @@ public function buildOptionsForm(&$form, &$form_state) {
/**
* Return the default argument.
*/
function
get
_a
rgument
()
{
public
function
get
A
rgument
()
{
return
$this
->
options
[
'argument'
];
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Php.php
View file @
f1ba4094
...
...
@@ -50,7 +50,7 @@ public function access() {
return
user_access
(
'use PHP for settings'
);
}
function
get
_a
rgument
()
{
public
function
get
A
rgument
()
{
// set up variables to make it easier to reference during the argument.
$view
=
&
$this
->
view
;
$argument
=
&
$this
->
argument
;
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Raw.php
View file @
f1ba4094
...
...
@@ -49,7 +49,7 @@ public function buildOptionsForm(&$form, &$form_state) {
);
}
function
get
_a
rgument
()
{
public
function
get
A
rgument
()
{
$path
=
NULL
;
if
(
$this
->
options
[
'use_alias'
])
{
$path
=
drupal_get_path_alias
();
...
...
core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/argument_default/ArgumentDefaultTest.php
View file @
f1ba4094
...
...
@@ -32,9 +32,9 @@ protected function defineOptions() {
}
/**
*
Overrides Drupal\views\Plugin\views\argument_default\ArgumentDefaultPluginBase::get_argument().
*
{@inheritdoc}
*/
public
function
get
_a
rgument
()
{
public
function
get
A
rgument
()
{
return
$this
->
options
[
'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