public function Link::buildOptionsForm

Same name in this branch
  1. 8.x drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Link.php \Drupal\node\Plugin\views\field\Link::buildOptionsForm()
  2. 8.x drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/Link.php \Drupal\user\Plugin\views\field\Link::buildOptionsForm()
  3. 8.x drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Link.php \Drupal\comment\Plugin\views\field\Link::buildOptionsForm()

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

Overrides FieldPluginBase::buildOptionsForm

File

drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/Link.php, line 40
Definition of Drupal\user\Plugin\views\field\Link.

Class

Link
Field handler to present a link to the user.

Namespace

Drupal\user\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['text'] = array(
    '#type' => 'textfield',
    '#title' => t('Text to display'),
    '#default_value' => $this->options['text'],
  );
  parent::buildOptionsForm($form, $form_state);
}