protected function Encode::getOptions in Tamper 8
Get the encode / decode options.
Return value
array List of options, keyed by method.
1 call to Encode::getOptions()
- Encode::buildConfigurationForm in src/
Plugin/ Tamper/ Encode.php - Form constructor.
File
- src/
Plugin/ Tamper/ Encode.php, line 61
Class
- Encode
- Plugin implementation for encoding / decoding.
Namespace
Drupal\tamper\Plugin\TamperCode
protected function getOptions() {
return [
'serialize' => $this
->t('PHP Serialize'),
'unserialize' => $this
->t('PHP Unserialize'),
'json_encode' => $this
->t('Json Encode'),
'json_decode' => $this
->t('Json Decode'),
'base64_encode' => $this
->t('Base64 Encode'),
'base64_decode' => $this
->t('Base64 Decode'),
];
}