You are here

public function ShurlyLinkDeactivate::init in ShURLy 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/ShurlyLinkDeactivate.php, line 25

Class

ShurlyLinkDeactivate
Field handler to provide a link to the short URL entry.

Namespace

Drupal\shurly\Plugin\views\field

Code

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