wip: integrate with easy admin bundle

This commit is contained in:
Björn Fromme committed 2026-01-10 11:35:16 +01:00
1 parent ace251c1dd
commit 6fca40963d
15 files changed
+478 -3

No files matched your search

+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');
}
}