From 2f8c788664e83deb04715c8bfc0344b1f59c720a Mon Sep 17 00:00:00 2001 From: "origami11@yandex.ru" Date: Thu, 27 Mar 2025 15:37:31 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=9F=D0=BE=D0=BB=D1=83=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=81=D0=B2=D0=BE=D0=B9=D1=81=D1=82=20=D0=BA=D0=BE=D0=BC=D0=BF?= =?UTF-8?q?=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Controller/Component.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Controller/Component.php b/src/Controller/Component.php index e0dd498..c0edb7c 100644 --- a/src/Controller/Component.php +++ b/src/Controller/Component.php @@ -232,6 +232,13 @@ class Component $view->component_title = $settings['title']; } + public function getFields($options = null) { + $form = new Form(); + $form->addFieldList($this->getInfo()['parameter'], $options); + + return $form->field; + } + /** * Обьеденить с ComponentFactory */