public function User::buildOptionsForm

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

Provide the default form for setting options.

Overrides ArgumentDefaultPluginBase::buildOptionsForm

File

drupal/core/modules/user/lib/Drupal/user/Plugin/views/argument_default/User.php, line 32
Definition of Drupal\user\Plugin\views\argument_default\User.

Class

User
Default argument plugin to extract a user via menu_get_object.

Namespace

Drupal\user\Plugin\views\argument_default

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['user'] = array(
    '#type' => 'checkbox',
    '#title' => t('Also look for a node and use the node author'),
    '#default_value' => $this->options['user'],
  );
}