PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
bit-form / includes / Core / Util / Translation / Contract / StringRegistrationProviderInterface.php

StringRegistrationProviderInterface.php in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 3.3.1, at includes/Core/Util/Translation/Contract/StringRegistrationProviderInterface.php

27 lines 796 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace BitCode\BitForm\Core\Util\Translation\Contract;
4
5 /**
6 * Optional half of the provider contract, for plugins that keep their own
7 * string store (WPML, Polylang). HTML-layer plugins discover strings from the
8 * rendered page and implement only TranslationProviderInterface.
9 *
10 * TranslationManager checks `instanceof` before calling onAdminInit().
11 */
12 interface StringRegistrationProviderInterface
13 {
14 /**
15 * Admin context: attach registration hooks (form save, translation screens).
16 */
17 public function onAdminInit();
18
19 /**
20 * Push [contextKey => sourceString] for one form into the plugin's store.
21 *
22 * @param mixed $formId
23 * @param array<string,string> $contextStrings
24 */
25 public function registerStrings($formId, array $contextStrings);
26 }
27