You are here

public function ChangeGroupMembershipRole::submitConfigurationForm in Open Social 8.5

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.6 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  3. 8.7 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  4. 8.8 modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  5. 10.3.x modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  6. 10.0.x modules/social_features/social_group/src/Plugin/Action/ChangeGroupMembershipRole.php \Drupal\social_group\Plugin\Action\ChangeGroupMembershipRole::submitConfigurationForm()
  7. 10.1.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()

Form submission handler.

Parameters

array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().

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