public function PluginConfiguration::submitInlineForm in Commerce Core 8.2
Submits the inline form.
Parameters
array $inline_form: The inline form, containing the following basic properties:
- #parents: Identifies the location of the field values in $form_state.
\Drupal\Core\Form\FormStateInterface $form_state: The form state of the complete form.
Overrides InlineFormBase::submitInlineForm
File
- src/
Plugin/ Commerce/ InlineForm/ PluginConfiguration.php, line 122
Class
- PluginConfiguration
- Provides a plugin configuration inline form.
Namespace
Drupal\commerce\Plugin\Commerce\InlineFormCode
public function submitInlineForm(array &$inline_form, FormStateInterface $form_state) {
parent::submitInlineForm($inline_form, $form_state);
$plugin = $this->pluginManager
->createInstance($this->configuration['plugin_id'], $this->configuration['plugin_configuration']);
$plugin
->submitConfigurationForm($inline_form['form'], $form_state);
$form_state
->setValueForElement($inline_form, $plugin
->getConfiguration());
}