Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | class ContactFormExtensionsVariable |
||
25 | { |
||
26 | public function name() |
||
27 | { |
||
28 | return ContactFormExtensions::$plugin->name; |
||
29 | } |
||
30 | |||
31 | public function recaptcha(string $localeOrAction = null) |
||
32 | { |
||
33 | if (ContactFormExtensions::$plugin->settings->recaptcha) { |
||
34 | return ContactFormExtensions::$plugin->contactFormExtensionsService->getRecaptcha()->render($localeOrAction); |
||
35 | } |
||
36 | |||
37 | return ''; |
||
38 | } |
||
39 | |||
40 | public function submissions($criteria = null): ElementQueryInterface |
||
49 | } |
||
50 | } |
||
51 |