You are here

public function EntityOperations::buildOptionsForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/field/EntityOperations.php \Drupal\views\Plugin\views\field\EntityOperations::buildOptionsForm()

Default options form that provides the label widget that all fields should have.

Overrides FieldPluginBase::buildOptionsForm

File

core/modules/views/src/Plugin/views/field/EntityOperations.php, line 101
Contains \Drupal\views\Plugin\views\field\EntityOperations.

Class

EntityOperations
Renders all operations links for an entity.

Namespace

Drupal\views\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['destination'] = array(
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Include destination'),
    '#description' => $this
      ->t('Include a <code>destination</code> parameter in the link to return the user to the original view upon completing the link action.'),
    '#default_value' => $this->options['destination'],
  );
}