You are here

public function Operations::init in Advanced Queue 8

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

src/Plugin/views/field/Operations.php, line 25

Class

Operations
Field handler to render operations available for a given job.

Namespace

Drupal\advancedqueue\Plugin\views\field

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  $this->additional_fields['state'] = 'state';
  $this->additional_fields['queue_id'] = 'queue_id';
  $this->additional_fields['job_id'] = 'job_id';
}