Mercurial > hg > isophonics-drupal-site
comparison core/modules/views/src/ViewExecutable.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 1fec387a4317 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
1094 } | 1094 } |
1095 // remember that this argument was computed, not passed on the URL. | 1095 // remember that this argument was computed, not passed on the URL. |
1096 $argument->is_default = TRUE; | 1096 $argument->is_default = TRUE; |
1097 } | 1097 } |
1098 | 1098 |
1099 // Set the argument, which will also validate that the argument can be set. | 1099 // Set the argument, which ensures that the argument is valid and |
1100 // possibly transforms the value. | |
1100 if (!$argument->setArgument($arg)) { | 1101 if (!$argument->setArgument($arg)) { |
1101 $status = $argument->validateFail($arg); | 1102 $status = $argument->validateFail($arg); |
1102 break; | 1103 break; |
1103 } | 1104 } |
1104 | 1105 |
1108 else { | 1109 else { |
1109 $arg_title = $argument->getTitle(); | 1110 $arg_title = $argument->getTitle(); |
1110 $argument->query($this->display_handler->useGroupBy()); | 1111 $argument->query($this->display_handler->useGroupBy()); |
1111 } | 1112 } |
1112 | 1113 |
1113 // Add this argument's substitution | 1114 // Add this argument's substitution. |
1114 $substitutions["{{ arguments.$id }}"] = $arg_title; | 1115 $substitutions["{{ arguments.$id }}"] = $arg_title; |
1115 $substitutions["{{ raw_arguments.$id }}"] = strip_tags(Html::decodeEntities($arg)); | 1116 // Since argument validator plugins can potentially transform the value, |
1117 // use whatever value the argument handler now has, not the raw value. | |
1118 $substitutions["{{ raw_arguments.$id }}"] = strip_tags(Html::decodeEntities($argument->getValue())); | |
1116 | 1119 |
1117 // Test to see if we should use this argument's title | 1120 // Test to see if we should use this argument's title |
1118 if (!empty($argument->options['title_enable']) && !empty($argument->options['title'])) { | 1121 if (!empty($argument->options['title_enable']) && !empty($argument->options['title'])) { |
1119 $title = $argument->options['title']; | 1122 $title = $argument->options['title']; |
1120 } | 1123 } |