- 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

+2 -3
View File
@@ -6,12 +6,11 @@ use CSSLSJ\ExamenFga\Api\{Lib};
use Picea\Ui\Method\{FormContextInterface};
use Ulmus\Entity\EntityInterface;
abstract class Delete implements \Picea\Ui\Method\FormInterface {
use FormTrait;
abstract class Delete extends Form implements \Picea\Ui\Method\FormInterface {
public function validate(FormContextInterface $context) : bool
{
if ( ! $this->entity->isLoaded() ) {
if ( ! $this->getEntity()->isLoaded() ) {
$context->pushMessage($this->message::generateError(
$this->lang('lean.api.form.delete.error.entity')
));