Issue #2003356 by phenaproxima, jibran, drupalway, Dan Reinders: Rename Views method process_summary_arguments() to processSummaryArguments().

8.0.x
Alex Pott 2013-06-11 14:47:42 +01:00
parent 5bf482fcb2
commit da83b1ab14
5 changed files with 7 additions and 7 deletions

View File

@ -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'];

View File

@ -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);

View File

@ -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);
}
}
}

View File

@ -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) { }
}

View File

@ -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.