You are here

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

Class

UriCondition
Filter condition using request URI.

Namespace

Drupal\access_filter\Plugin\AccessFilter\Condition

Code

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