function DblogMessage::init

Same name in other branches
  1. 9 core/modules/dblog/src/Plugin/views/field/DblogMessage.php \Drupal\dblog\Plugin\views\field\DblogMessage::init()
  2. 8.9.x core/modules/dblog/src/Plugin/views/field/DblogMessage.php \Drupal\dblog\Plugin\views\field\DblogMessage::init()
  3. 11.x core/modules/dblog/src/Plugin/views/field/DblogMessage.php \Drupal\dblog\Plugin\views\field\DblogMessage::init()

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';
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.