'textfield', '#title' => $this->t('Example'), '#default_value' => $this->settings['example'], '#description' => $this->t('Description of the setting.'), ]; return $form; } /** * {@inheritdoc} */ public function process($text, $langcode) { // @DCG Process text here. $example = $this->settings['example']; $text = str_replace($example, "$example", $text); return new FilterProcessResult($text); } /** * {@inheritdoc} */ public function tips($long = FALSE) { return $this->t('Some filter tips here.'); } }