// If this plugin is configurable but has not yet had user interaction,
// the default configuration will still be active and may trigger
// validation errors. Do not trigger those validation errors until the
// form is actually saved, to allow the user to first configure other
// CKEditor 5 functionality.
$default_configurations[$plugin_id] =
$default_configuration;
if ($form_state->
hasValue(['plugins',
$plugin_id])) { $subform =
$form['plugins'
][$plugin_id];
$subform_state = SubformState::
createForSubform($subform,
$form,
$form_state);
$plugin->
validateConfigurationForm($subform,
$subform_state);
$plugin->
submitConfigurationForm($subform,
$subform_state);
// If the configuration is stored out of band, ::submitConfigurationForm
// will already have stored it. If it is not stored out of band,
// populate $settings, to populate $submitted_editor.
if (!
$configuration_stored_out_of_band) { $settings['plugins'
][$plugin_id] =
$plugin->
getConfiguration();
} } // @see \Drupal\ckeditor5\Plugin\Editor\CKEditor5::injectPluginSettingsForm()
elseif ($this->
shouldHaveVisiblePluginSettingsForm($definition,
$eventual_editor_and_format_for_plugin_settings_visibility)) { if (!
$configuration_stored_out_of_band) {