30 lines
602 B
PHP
30 lines
602 B
PHP
<?php
|
|
|
|
namespace App\Controller\Admin;
|
|
|
|
use App\Entity\Section;
|
|
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
|
|
|
|
/**
|
|
* Class SectionCrudController
|
|
* @package App\Controller\Admin
|
|
*/
|
|
class SectionCrudController extends AbstractCrudController
|
|
{
|
|
public static function getEntityFqcn(): string
|
|
{
|
|
return Section::class;
|
|
}
|
|
|
|
/*
|
|
public function configureFields(string $pageName): iterable
|
|
{
|
|
return [
|
|
IdField::new('id'),
|
|
TextField::new('title'),
|
|
TextEditorField::new('description'),
|
|
];
|
|
}
|
|
*/
|
|
}
|