You are here

public function ArrayConditionBase::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/ArrayConditionBase.php, line 15

Class

ArrayConditionBase
Base class for condition plugins that checks arrays.

Namespace

Drupal\access_filter\Plugin\AccessFilter\Condition

Code

public function summary() {
  $regex = !empty($this->configuration['regex']) ? '<span class="regex">[Regex]</span>' : '';
  return Html::escape($this->configuration['key'] . ' = ' . $this->configuration['value']) . $regex;
}