public function ConnectionAccess::buildOptionsForm in RedHen CRM 8
Provide a form to edit options for this plugin.
Overrides PluginBase::buildOptionsForm
File
- modules/redhen_connection/ src/ Plugin/ views/ access/ ConnectionAccess.php, line 98 
Class
- ConnectionAccess
- Access plugin for RedHen Connections.
Namespace
Drupal\redhen_connection\Plugin\views\accessCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $operation = $this->options['operation'] ?? 'view';
  $operations = $this
    ->getOperations();
  $form['operation'] = [
    '#type' => 'select',
    '#options' => $operations,
    '#title' => $this
      ->t('Operation'),
    '#default_value' => $operation,
    '#description' => $this
      ->t('Only users with the ability to perform this operation on the RedHen entity in the url path will be able to access this display.<br>Note: this only applies to routes that contain {redhen_contact} or {redhen_org} parameters.'),
  ];
}