You are here

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

Class

Math
Plugin implementation for performing basic math.

Namespace

Drupal\tamper\Plugin\Tamper

Code

public function defaultConfiguration() {
  $config = parent::defaultConfiguration();
  $config[self::SETTING_OPERATION] = '';
  $config[self::SETTING_FLIP] = FALSE;
  $config[self::SETTING_VALUE] = '';
  return $config;
}