You are here

public function DblogMessage::init in Drupal 10

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

File

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

Class

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

Namespace

Drupal\dblog\Plugin\views\field

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  if ($this->options['replace_variables']) {
    $this->additional_fields['variables'] = 'variables';
  }
}