Issue #2003356 by phenaproxima, jibran, drupalway, Dan Reinders: Rename Views method process_summary_arguments() to processSummaryArguments().
parent
5bf482fcb2
commit
da83b1ab14
|
@ -182,7 +182,7 @@ class Term extends ArgumentValidatorPluginBase {
|
|||
}
|
||||
}
|
||||
|
||||
function process_summary_arguments(&$args) {
|
||||
public function processSummaryArguments(&$args) {
|
||||
$type = $this->options['type'];
|
||||
$transform = $this->options['transform'];
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ class User extends ArgumentValidatorPluginBase {
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
function process_summary_arguments(&$args) {
|
||||
public function processSummaryArguments(&$args) {
|
||||
// If the validation says the input is an username, we should reverse the
|
||||
// argument so it works for example for generation summary urls.
|
||||
$uids_arg_keys = array_flip($args);
|
||||
|
|
|
@ -754,10 +754,10 @@ abstract class ArgumentPluginBase extends HandlerBase {
|
|||
* For example, the validation plugin may want to alter an argument for use in
|
||||
* the URL.
|
||||
*/
|
||||
function process_summary_arguments(&$args) {
|
||||
public function processSummaryArguments(&$args) {
|
||||
if ($this->options['validate']['type'] != 'none') {
|
||||
if (isset($this->validator) || $this->validator = $this->getPlugin('argument_validator')) {
|
||||
$this->validator->process_summary_arguments($args);
|
||||
$this->validator->processSummaryArguments($args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ abstract class ArgumentValidatorPluginBase extends PluginBase {
|
|||
* for a faster query. But there are use cases where you want to use
|
||||
* the old value again, for example the summary.
|
||||
*/
|
||||
function process_summary_arguments(&$args) { }
|
||||
public function processSummaryArguments(&$args) { }
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -435,7 +435,7 @@ function template_preprocess_views_view_summary(&$vars) {
|
|||
foreach ($vars['rows'] as $id => $row) {
|
||||
$row_args[$id] = $argument->summaryArgument($row);
|
||||
}
|
||||
$argument->process_summary_arguments($row_args);
|
||||
$argument->processSummaryArguments($row_args);
|
||||
|
||||
foreach ($vars['rows'] as $id => $row) {
|
||||
$vars['rows'][$id]->link = $argument->summaryName($row);
|
||||
|
@ -495,7 +495,7 @@ function template_preprocess_views_view_summary_unformatted(&$vars) {
|
|||
foreach ($vars['rows'] as $id => $row) {
|
||||
$row_args[$id] = $argument->summaryArgument($row);
|
||||
}
|
||||
$argument->process_summary_arguments($row_args);
|
||||
$argument->processSummaryArguments($row_args);
|
||||
|
||||
foreach ($vars['rows'] as $id => $row) {
|
||||
// Only false on first time.
|
||||
|
|
Loading…
Reference in New Issue