function UserRole::submitConfigurationForm
Same name in other branches
- 9 core/modules/user/src/Plugin/Condition/UserRole.php \Drupal\user\Plugin\Condition\UserRole::submitConfigurationForm()
- 8.9.x core/modules/user/src/Plugin/Condition/UserRole.php \Drupal\user\Plugin\Condition\UserRole::submitConfigurationForm()
- 11.x core/modules/user/src/Plugin/Condition/UserRole.php \Drupal\user\Plugin\Condition\UserRole::submitConfigurationForm()
Overrides ConditionPluginBase::submitConfigurationForm
File
-
core/
modules/ user/ src/ Plugin/ Condition/ UserRole.php, line 55
Class
- UserRole
- Provides a 'User Role' condition.
Namespace
Drupal\user\Plugin\ConditionCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this->configuration['roles'] = array_filter($form_state->getValue('roles'));
parent::submitConfigurationForm($form, $form_state);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.