19 declare(strict_types=1);
29 public function getCopyrightSelectionInput(
string $lang_var_title):
Radio 31 static $copyright_input;
33 if ($copyright_input !== null) {
34 return $copyright_input;
37 $copyright_input = $this->getUIFactory()->input()->field()->radio($this->
getLanguage()->txt($lang_var_title));
40 foreach ($copyright_options as $copyright_option) {
41 if ($copyright_option->getOutdated()) {
44 $entry_id = $copyright_option->getEntryId();
45 $copyright_input = $copyright_input->withOption(
47 $copyright_option->getTitle(),
48 $copyright_option->getDescription()
50 if ($entry_id === $default_entry_id) {
51 $copyright_input = $copyright_input->withValue($entry_id);
55 return $copyright_input;
58 abstract protected function getUIFactory():
Factory;