public function ServicesClientFieldCondition::getSummary in Services Client 7.2
Retrieve configuration summary.
Overrides ServicesClientConditionInterface::getSummary
File
- include/
condition.inc, line 205
Class
Code
public function getSummary() {
if (empty($this->config['field'])) {
return '[ ' . t('Field condition - not configured') . ' ]';
}
else {
$path = "{$this->config['field']}[{$this->config['language']}][*][{$this->config['property']}]";
return format_string('<b>@path</b> @condition <b>@value</b>', array(
'@path' => $path,
'@condition' => $this->config['condition'],
'@value' => $this->config['value'],
));
}
}