public function Role::submitOptionsForm in Views (for Drupal 7) 8.3
Provide the default form form for submitting options
Overrides AccessPluginBase::submitOptionsForm
File
- lib/
Views/ user/ Plugin/ views/ access/ Role.php, line 80 - Definition of Views\user\Plugin\views\access\Role.
Class
- Role
- Access plugin that provides role-based access control.
Namespace
Views\user\Plugin\views\accessCode
public function submitOptionsForm(&$form, &$form_state) {
// I hate checkboxes.
$form_state['values']['access_options']['role'] = array_filter($form_state['values']['access_options']['role']);
}