public function ConvertBoolean::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/ ConvertBoolean.php, line 30
Class
- ConvertBoolean
- Plugin implementation for converting text value to boolean value.
Namespace
Drupal\tamper\Plugin\TamperCode
public function defaultConfiguration() {
$config = parent::defaultConfiguration();
$config[self::SETTING_TRUTH_VALUE] = 'true';
$config[self::SETTING_FALSE_VALUE] = 'false';
$config[self::SETTING_MATCH_CASE] = FALSE;
$config[self::SETTING_NO_MATCH] = 'false';
$config[self::SETTING_OTHER_TEXT] = '';
return $config;
}