You are here

public function EntityMatcher::defaultConfiguration in Linkit 8.5

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

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides MatcherBase::defaultConfiguration

3 calls to EntityMatcher::defaultConfiguration()
FileMatcher::defaultConfiguration in src/Plugin/Linkit/Matcher/FileMatcher.php
Gets default configuration for this plugin.
NodeMatcher::defaultConfiguration in src/Plugin/Linkit/Matcher/NodeMatcher.php
Gets default configuration for this plugin.
UserMatcher::defaultConfiguration in src/Plugin/Linkit/Matcher/UserMatcher.php
Gets default configuration for this plugin.
3 methods override EntityMatcher::defaultConfiguration()
FileMatcher::defaultConfiguration in src/Plugin/Linkit/Matcher/FileMatcher.php
Gets default configuration for this plugin.
NodeMatcher::defaultConfiguration in src/Plugin/Linkit/Matcher/NodeMatcher.php
Gets default configuration for this plugin.
UserMatcher::defaultConfiguration in src/Plugin/Linkit/Matcher/UserMatcher.php
Gets default configuration for this plugin.

File

src/Plugin/Linkit/Matcher/EntityMatcher.php, line 183

Class

EntityMatcher
Provides default linkit matchers for all entity types.

Namespace

Drupal\linkit\Plugin\Linkit\Matcher

Code

public function defaultConfiguration() {
  return [
    'metadata' => '',
    'bundles' => [],
    'group_by_bundle' => FALSE,
    'substitution_type' => SubstitutionManagerInterface::DEFAULT_SUBSTITUTION,
    'limit' => static::DEFAULT_LIMIT,
  ] + parent::defaultConfiguration();
}