'']; $options['suffix'] = ['default' => '']; return $options; } /** * {@inheritdoc} */ public function buildOptionsForm(&$form, FormStateInterface $form_state) { parent::buildOptionsForm($form, $form_state); $form['prefix'] = [ '#type' => 'textfield', '#title' => $this->t('Prefix'), '#default_value' => $this->options['prefix'], ]; $form['suffix'] = [ '#type' => 'textfield', '#title' => $this->t('Suffix'), '#default_value' => $this->options['suffix'], ]; } /** * {@inheritdoc} */ public function render(ResultRow $values) { return $this->options['prefix'] . parent::render($values) . $this->options['suffix']; } }