You are here

public function KeywordFilter::defaultConfiguration in Tamper 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides TamperBase::defaultConfiguration

File

src/Plugin/Tamper/KeywordFilter.php, line 73

Class

KeywordFilter
Plugin implementation for filtering based on a list of words/phrases.

Namespace

Drupal\tamper\Plugin\Tamper

Code

public function defaultConfiguration() {
  $config = parent::defaultConfiguration();
  $config[self::WORDS] = '';
  $config[self::WORD_BOUNDARIES] = FALSE;
  $config[self::EXACT] = FALSE;
  $config[self::CASE_SENSITIVE] = FALSE;
  $config[self::INVERT] = FALSE;
  $config[self::WORD_LIST] = [];
  $config[self::REGEX] = FALSE;
  $config[self::FUNCTION] = 'matchRegex';
  return $config;
}