-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathos2forms_sync.module
More file actions
43 lines (38 loc) · 1.18 KB
/
os2forms_sync.module
File metadata and controls
43 lines (38 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* @file
* Module file form os2forms_sync.
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\os2forms_sync\Helper\ImportHelper;
use Drupal\os2forms_sync\Helper\WebformHelper;
use Drupal\webform\WebformInterface;
/**
* Implements hook_webform_third_party_settings_form_alter().
*
* @see WebformHelper::webformThirdPartySettingsFormAlter()
*
* @phpstan-param array<string, mixed> $form
*/
function os2forms_sync_webform_third_party_settings_form_alter(array &$form, FormStateInterface $form_state): void {
\Drupal::service(WebformHelper::class)->webformThirdPartySettingsFormAlter($form, $form_state);
}
/**
* Implements hook_theme().
*
* @see WebformHelper::theme()
*
* @phpstan-param array<string, mixed> $existing
* @phpstan-return array<string, mixed>
*/
function os2forms_sync_theme(array $existing, string $type, string $theme, string $path): array {
return \Drupal::service(WebformHelper::class)->theme($existing, $type, $theme, $path);
}
/**
* Implements hook_webform_delete().
*
* @see ImportHelper::deleteWebform()
*/
function os2forms_sync_webform_delete(WebformInterface $webform): void {
\Drupal::service(ImportHelper::class)->deleteWebform($webform);
}