You are here

public static function FileMetadataPluginBase::defaultConfiguration in File metadata manager 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/FileMetadata/FileMetadataPluginBase.php \Drupal\file_mdm\Plugin\FileMetadata\FileMetadataPluginBase::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides FileMetadataPluginInterface::defaultConfiguration

File

src/Plugin/FileMetadata/FileMetadataPluginBase.php, line 135

Class

FileMetadataPluginBase
Abstract implementation of a base File Metadata plugin.

Namespace

Drupal\file_mdm\Plugin\FileMetadata

Code

public static function defaultConfiguration() {
  return [
    'cache' => [
      'override' => FALSE,
      'settings' => [
        'enabled' => TRUE,
        'expiration' => 172800,
        'disallowed_paths' => [],
      ],
    ],
  ];
}