- Big WIP on forms component
This commit is contained in:
1 parent
c0b0681fee
commit
3d50cfaccb
14 files changed
+114
-20
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user