public function Message::init

File

src/Plugin/views/field/Message.php, line 24

Class

Message
Provides a field handler that renders a log message with replaced variables.

Namespace

Drupal\tmgmt\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';
  }
}