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