You are here

public function BlockStyleBase::submitForm in Block Style Plugins 8

Overrides BlockStyleInterface::submitForm

Deprecated

in 8.x-1.4 and will be removed before 8.x-2.x. Instead, you should just use submitConfigurationForm().

File

src/Plugin/BlockStyleBase.php, line 224

Class

BlockStyleBase
Base class for Block style plugins.

Namespace

Drupal\block_style_plugins\Plugin

Code

public function submitForm($form, FormStateInterface $form_state) {
  @trigger_error('::submitForm() is deprecated in 8.x-1.4 and will be removed before 8.x-2.x. Instead, you should just use submitConfigurationForm(). See https://www.drupal.org/project/block_style_plugins/issues/3020109.', E_USER_DEPRECATED);

  // Allow plugins to manipulate the submitForm.
  $subform_state = SubformState::createForSubform($form['third_party_settings']['block_style_plugins'][$this->pluginId], $form, $form_state);
  $this
    ->submitConfigurationForm($form['third_party_settings']['block_style_plugins'][$this->pluginId], $subform_state);
}