37 $this->ui_factory = $DIC->ui()->factory();
44 $ff = $this->ui_factory->input()->field();
48 ->text($this->translator->translate(
'title',
'group'))
51 $this->
refinery->custom()->transformation(
function (
string $value):
string {
52 $this->group = $this->group->withTitle($value);
59 ->checkbox($this->translator->translate(
'active',
'group'))
62 $this->
refinery->custom()->transformation(
function (
bool $value):
bool {
63 $this->group = $this->group->withActive($value);
71 $ff->section(
$inputs, $this->translator->translate($this->group->getId() ===
'' ?
'add' :
'edit',
'group'))
77 return $this->ui_factory
83 $this->
refinery->custom()->transformation(fn(array $value): ?
Group => $this->group)
89 $form = $this->
get($target)->withRequest($request);
90 $data = $form->getData();
repository()
description: > Example for rendering a repository card
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This is how the factory for UI elements looks.