You are here

public function NodeMatcher::getSummary in Linkit 8.5

Same name and namespace in other branches
  1. 8.4 src/Plugin/Linkit/Matcher/NodeMatcher.php \Drupal\linkit\Plugin\Linkit\Matcher\NodeMatcher::getSummary()

Returns the summarized configuration of the matcher.

Return value

array An array of summarized configuration of the matcher.

Overrides EntityMatcher::getSummary

File

src/Plugin/Linkit/Matcher/NodeMatcher.php, line 23

Class

NodeMatcher
Provides specific linkit matchers for the node entity type.

Namespace

Drupal\linkit\Plugin\Linkit\Matcher

Code

public function getSummary() {
  $summery = parent::getSummary();
  $summery[] = $this
    ->t('Include unpublished: @include_unpublished', [
    '@include_unpublished' => $this->configuration['include_unpublished'] ? $this
      ->t('Yes') : $this
      ->t('No'),
  ]);
  return $summery;
}