19 declare(strict_types=1);
30 public function getCopyrightSelectionInput(
string $lang_var_title):
Radio 32 static $copyright_input;
34 if ($copyright_input !== null) {
35 return $copyright_input;
38 $copyright_input = $this->getUIFactory()->input()->field()->radio($this->
getLanguage()->txt($lang_var_title));
39 foreach ($this->lom_services->copyrightHelper()->getNonOutdatedCopyrightPresets() as $copyright_option) {
40 $copyright_input = $copyright_input->
withOption(
41 $copyright_option->identifier(),
42 $copyright_option->title(),
43 $copyright_option->description()
45 if ($copyright_option->isDefault()) {
46 $copyright_input = $copyright_input->withValue($copyright_option->identifier());
50 return $copyright_input;
53 abstract protected function getUIFactory():
Factory;
This is how the factory for UI elements looks.