mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-05 20:44:19 +01:00
29 lines
690 B
PHP
29 lines
690 B
PHP
<?php
|
|
|
|
namespace App\Controller\Admin;
|
|
|
|
use App\Entity\Answer;
|
|
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\IdField;
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextEditorField;
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
|
|
|
|
class AnswerCrudController extends AbstractCrudController
|
|
{
|
|
public static function getEntityFqcn(): string
|
|
{
|
|
return Answer::class;
|
|
}
|
|
|
|
/*
|
|
public function configureFields(string $pageName): iterable
|
|
{
|
|
return [
|
|
IdField::new('id'),
|
|
TextField::new('title'),
|
|
TextEditorField::new('description'),
|
|
];
|
|
}
|
|
*/
|
|
}
|