Provides a human readable summary of the condition's configuration.
Overrides ConditionInterface::summary
public function summary() {
if (!empty($this->configuration['php'])) {
return t('When the given PHP evaluates as @state.', array(
'@state' => !empty($this->configuration['negate']) ? 'FALSE' : 'TRUE',
));
}
else {
return t('No PHP code has been provided.');
}
}