public function User::buildOptionsForm in Views (for Drupal 7) 8.3
Same name in this branch
- 8.3 lib/Views/user/Plugin/views/argument_default/User.php \Views\user\Plugin\views\argument_default\User::buildOptionsForm()
- 8.3 lib/Views/user/Plugin/views/argument_validator/User.php \Views\user\Plugin\views\argument_validator\User::buildOptionsForm()
- 8.3 lib/Views/user/Plugin/views/field/User.php \Views\user\Plugin\views\field\User::buildOptionsForm()
Provide link to node option
Overrides FieldPluginBase::buildOptionsForm
2 calls to User::buildOptionsForm()
- Mail::buildOptionsForm in lib/
Views/ user/ Plugin/ views/ field/ Mail.php - Provide link to node option
- Name::buildOptionsForm in lib/
Views/ user/ Plugin/ views/ field/ Name.php - Provide link to node option
2 methods override User::buildOptionsForm()
- Mail::buildOptionsForm in lib/
Views/ user/ Plugin/ views/ field/ Mail.php - Provide link to node option
- Name::buildOptionsForm in lib/
Views/ user/ Plugin/ views/ field/ Name.php - Provide link to node option
File
- lib/
Views/ user/ Plugin/ views/ field/ User.php, line 45 - Definition of Views\user\Plugin\views\field\User.
Class
- User
- Field handler to provide simple renderer that allows linking to a user.
Namespace
Views\user\Plugin\views\fieldCode
public function buildOptionsForm(&$form, &$form_state) {
$form['link_to_user'] = array(
'#title' => t('Link this field to its user'),
'#description' => t("Enable to override this field's links."),
'#type' => 'checkbox',
'#default_value' => $this->options['link_to_user'],
);
parent::buildOptionsForm($form, $form_state);
}