You are here

public function User::buildOptionsForm in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Views/user/Plugin/views/argument_default/User.php \Views\user\Plugin\views\argument_default\User::buildOptionsForm()
  2. 8.3 lib/Views/user/Plugin/views/argument_validator/User.php \Views\user\Plugin\views\argument_validator\User::buildOptionsForm()
  3. 8.3 lib/Views/user/Plugin/views/field/User.php \Views\user\Plugin\views\field\User::buildOptionsForm()

Provide the default form for setting options.

Overrides ArgumentDefaultPluginBase::buildOptionsForm

File

lib/Views/user/Plugin/views/argument_default/User.php, line 32
Definition of Views\user\Plugin\views\argument_default\User.

Class

User
Default argument plugin to extract a user via menu_get_object.

Namespace

Views\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'],
  );
}