You are here

protected function MaestroEngineUserWhoCompleted::defineOptions in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/field/MaestroEngineUserWhoCompleted.php \Drupal\maestro\Plugin\views\field\MaestroEngineUserWhoCompleted::defineOptions()

Define the available options.

Return value

array The array of options.

Overrides FieldPluginBase::defineOptions

File

src/Plugin/views/field/MaestroEngineUserWhoCompleted.php, line 31

Class

MaestroEngineUserWhoCompleted
Field handler to create a linkage to the user who completed a task.

Namespace

Drupal\maestro\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['user_display_style'] = [
    'default' => 'name',
  ];
  $options['link_to_user'] = [
    'default' => 0,
  ];
  return $options;
}