You are here

public function DblogMessage::init in Drupal 9

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()

Initialize the plugin.

Parameters

\Drupal\views\ViewExecutable $view: The view object.

\Drupal\views\Plugin\views\display\DisplayPluginBase $display: The display handler.

array $options: The options configured for this plugin.

Overrides FieldPluginBase::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';
  }
}