You are here

public function TruncateText::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/TruncateText.php, line 29

Class

TruncateText
Plugin implementation of the Truncate Text plugin.

Namespace

Drupal\tamper\Plugin\Tamper

Code

public function defaultConfiguration() {
  $config = parent::defaultConfiguration();
  $config[self::SETTING_NUM_CHAR] = 0;
  $config[self::SETTING_ELLIPSE] = FALSE;
  $config[self::SETTING_WORDSAFE] = FALSE;
  return $config;
}