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
7b3a9a93
Commit
7b3a9a93
authored
Jun 05, 2013
by
alexpott
Browse files
Issue
#2003306
by markie: Rename Views method set_breadcrumb() to setBreadcrumb().
parent
802b6c0c
Changes
4
Hide whitespace changes
Inline
Side-by-side
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument/IndexTid.php
View file @
7b3a9a93
...
@@ -35,7 +35,7 @@ public function buildOptionsForm(&$form, &$form_state) {
...
@@ -35,7 +35,7 @@ public function buildOptionsForm(&$form, &$form_state) {
);
);
}
}
function
set
_b
readcrumb
(
&
$breadcrumb
)
{
public
function
set
B
readcrumb
(
&
$breadcrumb
)
{
if
(
empty
(
$this
->
options
[
'set_breadcrumb'
])
||
!
is_numeric
(
$this
->
argument
))
{
if
(
empty
(
$this
->
options
[
'set_breadcrumb'
])
||
!
is_numeric
(
$this
->
argument
))
{
return
;
return
;
}
}
...
...
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument/IndexTidDepth.php
View file @
7b3a9a93
...
@@ -69,7 +69,7 @@ public function buildOptionsForm(&$form, &$form_state) {
...
@@ -69,7 +69,7 @@ public function buildOptionsForm(&$form, &$form_state) {
parent
::
buildOptionsForm
(
$form
,
$form_state
);
parent
::
buildOptionsForm
(
$form
,
$form_state
);
}
}
function
set
_b
readcrumb
(
&
$breadcrumb
)
{
public
function
set
B
readcrumb
(
&
$breadcrumb
)
{
if
(
empty
(
$this
->
options
[
'set_breadcrumb'
])
||
!
is_numeric
(
$this
->
argument
))
{
if
(
empty
(
$this
->
options
[
'set_breadcrumb'
])
||
!
is_numeric
(
$this
->
argument
))
{
return
;
return
;
}
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
View file @
7b3a9a93
...
@@ -84,7 +84,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
...
@@ -84,7 +84,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
* The breadcrumb will be in the form of an array, with the keys being
* The breadcrumb will be in the form of an array, with the keys being
* the path and the value being the already sanitized title of the path.
* the path and the value being the already sanitized title of the path.
*/
*/
function
set
_b
readcrumb
(
&
$breadcrumb
)
{
}
public
function
set
B
readcrumb
(
&
$breadcrumb
)
{
}
/**
/**
* Determine if the argument can generate a breadcrumb
* Determine if the argument can generate a breadcrumb
...
...
core/modules/views/lib/Drupal/views/ViewExecutable.php
View file @
7b3a9a93
...
@@ -903,7 +903,7 @@ protected function _buildArguments() {
...
@@ -903,7 +903,7 @@ protected function _buildArguments() {
}
}
// Allow the argument to muck with this breadcrumb.
// Allow the argument to muck with this breadcrumb.
$argument
->
set
_b
readcrumb
(
$this
->
build_info
[
'breadcrumb'
]);
$argument
->
set
B
readcrumb
(
$this
->
build_info
[
'breadcrumb'
]);
// Test to see if we should use this argument's title
// Test to see if we should use this argument's title
if
(
!
empty
(
$argument
->
options
[
'title_enable'
])
&&
!
empty
(
$argument
->
options
[
'title'
]))
{
if
(
!
empty
(
$argument
->
options
[
'title_enable'
])
&&
!
empty
(
$argument
->
options
[
'title'
]))
{
...
...
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