File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 121121
122122 'exports ' => [
123123 'disk ' => 'local ' ,
124+ 'exporters ' => [
125+ \SolutionForest \InspireCms \Exports \Exporters \DocumentTypeExporter::class,
126+ \SolutionForest \InspireCms \Exports \Exporters \FieldGroupExporter::class,
127+ \SolutionForest \InspireCms \Exports \Exporters \TemplateExporter::class,
128+ ],
124129 ],
125130
126131 'models ' => [
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ abstract public static function getArgsFormFields(): array;
3030
3131 public static function getLabel (): string
3232 {
33- return str (static ::class)->classBasename ()->studly ()->toString ();
33+ return str (static ::class)->classBasename ()->snake ()-> replace ( ' _ ' , ' ' )-> apa ()->toString ();
3434 }
3535
3636 /**
Original file line number Diff line number Diff line change @@ -131,11 +131,7 @@ public static function infolist(Infolist $infolist): Infolist
131131
132132 public static function form (Form $ form ): Form
133133 {
134- $ exporters = collect ([
135- \SolutionForest \InspireCms \Exports \Exporters \DocumentTypeExporter::class,
136- \SolutionForest \InspireCms \Exports \Exporters \FieldGroupExporter::class,
137- \SolutionForest \InspireCms \Exports \Exporters \TemplateExporter::class,
138- ])
134+ $ exporters = collect (InspireCmsConfig::get ('exports.exporters ' , []))
139135 ->mapWithKeys (fn ($ exporter ) => [$ exporter => $ exporter ::getLabel ()])
140136 ->all ();
141137
You can’t perform that action at this time.
0 commit comments