public function RequestParam::summary in Condition Query 8
Provides a human readable summary of the condition's configuration.
Overrides ConditionInterface::summary
File
- src/
Plugin/ Condition/ RequestParam.php, line 90
Class
- RequestParam
- Provides a 'Request Param' condition.
Namespace
Drupal\condition_query\Plugin\ConditionCode
public function summary() {
$params = array_map('trim', explode("\n", $this->configuration['request_param']));
$params = implode(', ', $params);
if (!empty($this->configuration['negate'])) {
return $this
->t('Do not return true on the following query parameters: @params', [
'@params' => $params,
]);
}
return $this
->t('Return true on the following query parameters: @params', [
'@params' => $params,
]);
}