File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818use Statamic \Events \FormDeleting ;
1919use Statamic \Events \FormSaved ;
2020use Statamic \Events \FormSaving ;
21- use Statamic \Facades \Blueprint ;
21+ use Statamic \Facades ;
22+ use Statamic \Fields \Blueprint ;
2223use Statamic \Facades \File ;
2324use Statamic \Facades \Form as FormFacade ;
2425use Statamic \Facades \FormSubmission ;
@@ -83,7 +84,7 @@ public function formFields($fields = null)
8384 return $ this
8485 ->fluentlyGetOrSet ('fields ' )
8586 ->getter (function ($ fields ) {
86- if (empty ($ fields ) && $ blueprint = Blueprint::find ("forms. {$ this ->handle ()}" )) {
87+ if (empty ($ fields ) && $ blueprint = Facades \ Blueprint::find ("forms. {$ this ->handle ()}" )) {
8788 $ fields = $ this ->convertFieldsFromBlueprint ($ blueprint );
8889 }
8990
@@ -92,7 +93,7 @@ public function formFields($fields = null)
9293 ->args (func_get_args ());
9394 }
9495
95- private function convertFieldsFromBlueprint (\ Statamic \ Fields \ Blueprint $ blueprint ): array
96+ private function convertFieldsFromBlueprint (Blueprint $ blueprint ): array
9697 {
9798 $ sections = collect ($ blueprint ->contents ()['tabs ' ] ?? [])->flatMap (function (array $ tab ): array {
9899 return collect ($ tab ['sections ' ] ?? [])->map (function (array $ section ): array {
You can’t perform that action at this time.
0 commit comments