You are here

public function FileMatcher::defaultConfiguration in Linkit 8.5

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

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides EntityMatcher::defaultConfiguration

File

src/Plugin/Linkit/Matcher/FileMatcher.php, line 57

Class

FileMatcher
Provides specific linkit matchers for the file entity type.

Namespace

Drupal\linkit\Plugin\Linkit\Matcher

Code

public function defaultConfiguration() {
  return [
    'file_extensions' => '',
    'file_status' => FILE_STATUS_PERMANENT,
    'images' => [
      'show_dimensions' => FALSE,
      'show_thumbnail' => FALSE,
      'thumbnail_image_style' => 'linkit_result_thumbnail',
    ],
    'substitution_type' => 'file',
  ] + parent::defaultConfiguration();
}