You are here

public function ChangeGroupMembershipRole::submitConfigurationForm in Open Social 10.1.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  2. 8.5 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  3. 8.6 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  4. 8.7 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  5. 8.8 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  6. 10.3.x modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  7. 10.0.x modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  8. 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\Action

Code

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');
}