public function ChainConditionBase::summary in Access Filter 8
Gets summary text for the condition.
Return value
string A summary string.
Overrides ConditionInterface::summary
File
- src/
Plugin/ AccessFilter/ Condition/ ChainConditionBase.php, line 53
Class
- ChainConditionBase
- Base class for condition plugins that chains other conditions.
Namespace
Drupal\access_filter\Plugin\AccessFilter\ConditionCode
public function summary() {
$summary = '<ul>';
foreach ($this->configuration['conditions'] as $condition) {
$instance = $this
->createPluginInstance($condition);
if ($instance) {
$summary .= '<li>' . $instance
->getPluginId() . ': ' . $instance
->summary() . '</li>';
}
}
$summary .= '</ul>';
return $summary;
}