Files
plugi/extensions/plugi-ext-form/blocks/form-wrapper/config.php
T
deepDiverPaul 80e60d6823 translate form extension UI to English
Replace German labels, prompts, validation messages, and submission text across the form admin and block views with English.
Remove redundant LICENSE files from the form and sitemap extensions.
2026-11-24 10:56:44 +01:00

27 lines
563 B
PHP

<?php
$formRepository = new \Plugi\Extensions\Form\DefinitionsRepository();
$forms = $formRepository->getAll(["id", "name"]);
$formOptions = [];
foreach ($forms as $form) {
$formOptions[] = [
"id" => $form["id"],
"name" => $form["name"],
];
}
return [
"title" => "Form Wrapper",
"category" => "Form",
"icon" => "fa fa-hand-peace-o",
"settings" => [
"formId" => [
"type" => "select",
"label" => "Form",
"value" => 0,
"options" => $formOptions,
],
],
];