You are here

public function PageNotFoundRequest::summary in Block In Page Not Found 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/Condition/PageNotFoundRequest.php \Drupal\block_in_page_not_found\Plugin\Condition\PageNotFoundRequest::summary()

Provides a human readable summary of the condition's configuration.

Overrides ConditionInterface::summary

File

src/Plugin/Condition/PageNotFoundRequest.php, line 119

Class

PageNotFoundRequest
Class PageNotFoundRequest.

Namespace

Drupal\block_in_page_not_found\Plugin\Condition

Code

public function summary() {
  if (!empty($this->configuration['negate'])) {
    return $this
      ->t('Do not return true on the following page not found.');
  }
  return $this
    ->t('Return true on the following page not found.');
}