Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

45 lines
1.0 KiB

<?= "<?php\n" ?>
declare(strict_types=1);
namespace <?= $namespace ?>;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
final class <?= $class_name ?> extends AbstractAdmin
{
protected function configureDatagridFilters(DatagridMapper $datagridMapper): void
{
$datagridMapper
<?= $fields ?>;
}
protected function configureListFields(ListMapper $listMapper): void
{
$listMapper
<?= $fields ?>->add('_action', null, [
'actions' => [
'show' => [],
'edit' => [],
'delete' => [],
],
]);
}
protected function configureFormFields(FormMapper $formMapper): void
{
$formMapper
<?= $fields ?>;
}
protected function configureShowFields(ShowMapper $showMapper): void
{
$showMapper
<?= $fields ?>;
}
}