public function StrPad::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/ StrPad.php, line 29
Class
- StrPad
- Plugin implementation of the Str Pad plugin.
Namespace
Drupal\tamper\Plugin\TamperCode
public function defaultConfiguration() {
$config = parent::defaultConfiguration();
$config[self::SETTING_PAD_LENGTH] = 10;
$config[self::SETTING_PAD_STRING] = ' ';
$config[self::SETTING_PAD_TYPE] = STR_PAD_RIGHT;
return $config;
}