protected function Trim::getOptions in Tamper 8
Get the trim options.
Return value
array List of options, keyed by trim function.
1 call to Trim::getOptions()
- Trim::buildConfigurationForm in src/
Plugin/ Tamper/ Trim.php - Form constructor.
File
- src/
Plugin/ Tamper/ Trim.php, line 72
Class
- Trim
- Plugin implementation for trimming text.
Namespace
Drupal\tamper\Plugin\TamperCode
protected function getOptions() {
return [
'trim' => $this
->t('Both'),
'ltrim' => $this
->t('Left'),
'rtrim' => $this
->t('Right'),
];
}