public function Message::buildOptionsForm in Translation Management Tool 8
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ field/ Message.php, line 45  
Class
- Message
 - Provides a field handler that renders a log message with replaced variables.
 
Namespace
Drupal\tmgmt\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['replace_variables'] = array(
    '#title' => t('Replace variables'),
    '#type' => 'checkbox',
    '#default_value' => $this->options['replace_variables'],
  );
}