wip: integrate with easy admin bundle

This commit is contained in:
Björn Fromme
2026-03-16 12:02:27 +01:00
parent c7702b0c37
commit 99190b0ef1
15 changed files with 478 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace App\Admin\Field;
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
use EasyCorp\Bundle\EasyAdminBundle\Field\FieldTrait;
class JsonDataField implements FieldInterface
{
use FieldTrait;
public static function new(string $propertyName, ?string $label = null): self
{
return (new self())
->setProperty($propertyName)
->setLabel($label)
->setTemplatePath('admin/field/json.html.twig');
}
}