protected function Math::getOptions in Tamper 8
Get the math operation options.
Return value
array List of options.
1 call to Math::getOptions()
- Math::buildConfigurationForm in src/
Plugin/ Tamper/ Math.php - Form constructor.
File
- src/
Plugin/ Tamper/ Math.php, line 103
Class
- Math
- Plugin implementation for performing basic math.
Namespace
Drupal\tamper\Plugin\TamperCode
protected function getOptions() {
return [
'addition' => $this
->t('addition'),
'subtraction' => $this
->t('subtraction'),
'multiplication' => $this
->t('multiplication'),
'division' => $this
->t('division'),
];
}