You are here

public function User::buildOptionsForm in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/user/src/Plugin/views/argument_default/User.php \Drupal\user\Plugin\views\argument_default\User::buildOptionsForm()
  2. 8 core/modules/user/src/Plugin/views/argument_validator/User.php \Drupal\user\Plugin\views\argument_validator\User::buildOptionsForm()
Same name and namespace in other branches
  1. 8.0 core/modules/user/src/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

core/modules/user/src/Plugin/views/argument_default/User.php, line 80
Contains \Drupal\user\Plugin\views\argument_default\User.

Class

User
Default argument plugin to extract a user from request.

Namespace

Drupal\user\Plugin\views\argument_default

Code

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