18declare(strict_types=1);
43 $factory =
$DIC->ui()->factory();
47 public function getNodes(
48 NodeFactory $node_factory,
49 IconFactory $icon_factory,
50 array $sync_node_id_whitelist = [],
51 ?
string $parent_id =
null,
55 public function getNodesAsLeaf(
56 NodeFactory $node_factory,
57 IconFactory $icon_factory,
64 $input = $factory->input()->field()->treeSelect(
66 "select a single node",
67 "this field should be marked as required.",
70 $input = $input->withRequired(
true);
72 $form = $factory->input()->container()->form()->standard(
'#', [$input]);
This is how a factory for icons looks like.