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
304
Merge Requests
304
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
265a77b3
Commit
265a77b3
authored
May 28, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2002866
by mcpuddin: Rename Views method has_default_argument() to hasDefaultArgument().
parent
39069958
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
...Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
+2
-2
core/modules/views/lib/Drupal/views/ViewExecutable.php
core/modules/views/lib/Drupal/views/ViewExecutable.php
+1
-1
No files found.
core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
View file @
265a77b3
...
...
@@ -733,7 +733,7 @@ function default_default() {
/**
* Determine if the argument is set to provide a default argument.
*/
function
has
_default_a
rgument
()
{
function
has
DefaultA
rgument
()
{
$info
=
$this
->
default_actions
(
$this
->
options
[
'default_action'
]);
return
!
empty
(
$info
[
'has default argument'
]);
}
...
...
@@ -1014,7 +1014,7 @@ function get_value() {
// Clone ourselves so that we don't break things when we're really
// processing the arguments.
$argument
=
clone
$this
;
if
(
!
isset
(
$arg
)
&&
$argument
->
has
_default_a
rgument
())
{
if
(
!
isset
(
$arg
)
&&
$argument
->
has
DefaultA
rgument
())
{
$arg
=
$argument
->
get_default_argument
();
// remember that this argument was computed, not passed on the URL.
...
...
core/modules/views/lib/Drupal/views/ViewExecutable.php
View file @
265a77b3
...
...
@@ -855,7 +855,7 @@ protected function _buildArguments() {
$arg
=
isset
(
$this
->
args
[
$position
])
?
$this
->
args
[
$position
]
:
NULL
;
$argument
->
position
=
$position
;
if
(
isset
(
$arg
)
||
$argument
->
has
_default_a
rgument
())
{
if
(
isset
(
$arg
)
||
$argument
->
has
DefaultA
rgument
())
{
if
(
!
isset
(
$arg
))
{
$arg
=
$argument
->
get_default_argument
();
// make sure default args get put back.
...
...
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