You are here

public function AssignMediaToGroup::submitConfigurationForm in Group Media 8.2

Same name in this branch
  1. 8.2 src/Plugin/Action/AssignMediaToGroup.php \Drupal\groupmedia\Plugin\Action\AssignMediaToGroup::submitConfigurationForm()
  2. 8.2 modules/groupmedia_vbo/src/Plugin/Action/AssignMediaToGroup.php \Drupal\groupmedia_vbo\Plugin\Action\AssignMediaToGroup::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

src/Plugin/Action/AssignMediaToGroup.php, line 102

Class

AssignMediaToGroup
Assign media to Group.

Namespace

Drupal\groupmedia\Plugin\Action

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this->configuration['group_id'] = $form_state
    ->getValue('group_id');
}