-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathPluginTemplateSettingsForm.php
More file actions
36 lines (30 loc) · 1.04 KB
/
Copy pathPluginTemplateSettingsForm.php
File metadata and controls
36 lines (30 loc) · 1.04 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
<?php
/**
* @file plugins/generic/pluginTemplate/PluginTemplateSettingsForm.php
*
* Copyright (c) 2017-2026 Simon Fraser University
* Copyright (c) 2017-2026 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class PluginTemplateSettingsForm
*
* @brief Form component for PluginTemplate plugin settings
*/
namespace APP\plugins\generic\pluginTemplate;
use APP\plugins\generic\pluginTemplate\classes\Constants;
use PKP\components\forms\FieldText;
use PKP\components\forms\FormComponent;
class PluginTemplateSettingsForm extends FormComponent
{
public $id = 'pluginTemplateSettings';
public $method = 'PUT';
public function __construct(string $action)
{
$this->action = $action;
$this->addField(new FieldText(Constants::PUBLICATION_STATEMENT, [
'label' => __('plugins.generic.pluginTemplate.publicationStatement'),
'description' => __('plugins.generic.pluginTemplate.publicationStatement.description'),
'value' => '',
]));
}
}