Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DblogMessage.php

function DblogMessage::buildOptionsForm

Overrides FieldPluginBase::buildOptionsForm

File

core/modules/dblog/src/Plugin/views/field/DblogMessage.php, line 45

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'] = [
        '#title' => $this->t('Replace variables'),
        '#type' => 'checkbox',
        '#default_value' => $this->options['replace_variables'],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal