Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
13
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Merge requests
!432
ISTWCMS-6822: Adding links and tasks.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
ISTWCMS-6822: Adding links and tasks.
feature/ISTWCMS-6822-ibiki-kuali_archives_ce
into
feature/ISTWCMS-6822-ibiki-kuali_archives
Overview
0
Commits
2
Pipelines
0
Changes
5
Open
Igor Biki
requested to merge
feature/ISTWCMS-6822-ibiki-kuali_archives_ce
into
feature/ISTWCMS-6822-ibiki-kuali_archives
10 months ago
Overview
0
Commits
2
Pipelines
0
Changes
5
Expand
👍
0
👎
0
Merge request reports
Compare
feature/ISTWCMS-6822-ibiki-kuali_archives
version 1
99f7bf29
10 months ago
feature/ISTWCMS-6822-ibiki-kuali_archives (HEAD)
and
latest version
latest version
58d80d3b
2 commits,
10 months ago
version 1
99f7bf29
1 commit,
10 months ago
5 files
+
111
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
modules/uw_kuali/src/Form/UwKualiArchiveForm.php
0 → 100644
+
52
−
0
Options
<?php
namespace
Drupal\uw_kuali\Form
;
use
Drupal\Core\Form\ConfigFormBase
;
use
Drupal\Core\Form\FormStateInterface
;
/**
* Represents a form used for archiving data in the UwKuali application.
*
* This class extends the ConfigFormBase class, which provides a base class for creating configuration forms
* in a Drupal module.
*/
class
UwKualiArchiveForm
extends
ConfigFormBase
{
public
const
SETTINGS
=
'uw_kuali.archive.settings'
;
/**
* {@inheritDoc}
*/
protected
function
getEditableConfigNames
()
{
return
[
'uw_kuali.archive.settings.UG'
,
'uw_kuali.archive.settings.GRD'
,
];
}
/**
* {@inheritDoc}
*/
public
function
getFormId
():
string
{
return
'uw_kuali_archive_form'
;
}
/**
* {@inheritDoc}
*/
public
function
buildForm
(
array
$form
,
FormStateInterface
$form_state
,
string
$career
=
NULL
)
{
$settings
=
$this
->
config
(
static
::
SETTINGS
.
'.'
.
$career
);
$form
[
'career'
]
=
[
'#type'
=>
'textfield'
,
'#title'
=>
$this
->
t
(
'Career '
.
$career
),
'#default_value'
=>
$settings
->
get
(
'career'
)
??
$career
,
];
return
parent
::
buildForm
(
$form
,
$form_state
);
}
}
Loading