You are here

public function DblogMessage::buildOptionsForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/dblog/src/Plugin/views/field/DblogMessage.php \Drupal\dblog\Plugin\views\field\DblogMessage::buildOptionsForm()

Default options form that provides the label widget that all fields should have.

Overrides FieldPluginBase::buildOptionsForm

File

core/modules/dblog/src/Plugin/views/field/DblogMessage.php, line 50
Contains \Drupal\dblog\Plugin\views\field\DblogMessage.

Class

DblogMessage
Provides a field handler that renders a log event with replaced variables.

Namespace

Drupal\dblog\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['replace_variables'] = array(
    '#title' => $this
      ->t('Replace variables'),
    '#type' => 'checkbox',
    '#default_value' => $this->options['replace_variables'],
  );
}