You are here

protected function StrPad::getOptions in Tamper 8

Get the Strpad options.

Return value

array List of options, keyed by Strpad function.

1 call to StrPad::getOptions()
StrPad::buildConfigurationForm in src/Plugin/Tamper/StrPad.php
Form constructor.

File

src/Plugin/Tamper/StrPad.php, line 80

Class

StrPad
Plugin implementation of the Str Pad plugin.

Namespace

Drupal\tamper\Plugin\Tamper

Code

protected function getOptions() {
  return [
    STR_PAD_RIGHT => $this
      ->t('Right'),
    STR_PAD_LEFT => $this
      ->t('Left'),
    STR_PAD_BOTH => $this
      ->t('Both'),
  ];
}