{% import 'lib/di.twig' as di %} '']; return $options; } /** * {@inheritdoc} */ public function buildOptionsForm(&$form, FormStateInterface $form_state) { parent::buildOptionsForm($form, $form_state); $form['example'] = [ '#type' => 'textfield', '#title' => $this->t('Example'), '#default_value' => $this->options['example'], ]; } {% endif %} /** * {@inheritdoc} */ public function render(ResultRow $values) { $value = parent::render($values); // @DCG Modify or replace the rendered value here. return $value; } }