public function ChangeGroupMembershipRole::submitConfigurationForm in Open Social 10.0.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
- 8.5 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
- 8.6 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
- 8.7 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
- 8.8 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
- 10.3.x modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
- 10.1.x modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
- 10.2.x modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
Default configuration form submit handler.
This method will be needed if a child class will implement \Drupal\Core\Plugin\PluginFormInterface. Code saver.
Parameters
array &$form: Form array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state object.
Overrides ViewsBulkOperationsActionBase::submitConfigurationForm
File
- modules/
social_features/ social_group/ src/ Plugin/ Action/ ChangeGroupMembershipRole.php, line 185
Class
- ChangeGroupMembershipRole
- Change group membership role.
Namespace
Drupal\social_group\Plugin\ActionCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
$this->configuration['is_member'] = $this->configuration['role'] === $form_state
->get('member_role');
}