- Big WIP on forms component

This commit is contained in:
mcndave committed 2025-12-01 15:46:02 +00:00
1 parent c0b0681fee
commit 3d50cfaccb
14 files changed
+114 -20

No files matched your search

+3
View File
@@ -5,6 +5,7 @@ namespace Lean\Api\Lib;
use Lean\Api\Factory\MessageFactoryInterface;
use Lean\LanguageHandler;
use Psr\Http\Message\ServerRequestInterface;
use Ulmus\Entity\EntityInterface;
class FormContext extends \Picea\Ui\Method\FormContext {
@@ -18,6 +19,8 @@ class FormContext extends \Picea\Ui\Method\FormContext {
parent::__construct($request, $formName);
}
# public function initializeEntity(EntityInterface $entity) : void {}
public function lang(string $key, array $variables = [])
{
return $this->languageHandler->languageFromKey($key, $variables);