function DblogMessage::defineOptions

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

Overrides FieldPluginBase::defineOptions

File

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

Class

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

Namespace

Drupal\dblog\Plugin\views\field

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['replace_variables'] = [
        'default' => TRUE,
    ];
    return $options;
}

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