protected function ConvertCase::getOptions in Tamper 8
Get the case conversion options.
Return value
array List of options, keyed by method on Drupal's unicode class.
1 call to ConvertCase::getOptions()
- ConvertCase::buildConfigurationForm in src/
Plugin/ Tamper/ ConvertCase.php - Form constructor.
File
- src/
Plugin/ Tamper/ ConvertCase.php, line 61
Class
- ConvertCase
- Plugin implementation for converting case.
Namespace
Drupal\tamper\Plugin\TamperCode
protected function getOptions() {
return [
'strtoupper' => $this
->t('Convert to uppercase'),
'strtolower' => $this
->t('Convert to lowercase'),
'ucfirst' => $this
->t('Capitalize the first character'),
'lcfirst' => $this
->t('Convert the first character to lowercase'),
'ucwords' => $this
->t('Capitalize the first character of each word'),
];
}