You are here

function _webform_entity_print_form_submit in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_entity_print/webform_entity_print.webform.inc \_webform_entity_print_form_submit()

Submit callback for clearing library_info cache.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

See also

\Drupal\webform_entity_print\Plugin\Derivative\WebformEntityPrintWebformExporterDeriver

2 string references to '_webform_entity_print_form_submit'
webform_entity_print_webform_admin_third_party_settings_form_alter in modules/webform_entity_print/webform_entity_print.webform.inc
Implements hook_webform_admin_third_party_settings_form_alter().
webform_entity_print_webform_third_party_settings_form_alter in modules/webform_entity_print/webform_entity_print.webform.inc
Implements hook_webform_third_party_settings_form_alter().

File

modules/webform_entity_print/webform_entity_print.webform.inc, line 202
Integrates third party settings for the Webform Entity Print module.

Code

function _webform_entity_print_form_submit(array &$form, FormStateInterface $form_state) {
  if (!$form_state
    ->hasAnyErrors()) {

    // Invalidate library_info cache tag.
    // @see webform_entity_print_library_info_build()
    Cache::invalidateTags([
      'library_info',
    ]);
  }
}