Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
QuotesCrudController
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 getEntityFqcn
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 configureFields
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Controller\Admin;
4
5use App\Entity\Quotes;
6use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
7use EasyCorp\Bundle\EasyAdminBundle\Field\IdField;
8use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField;
9use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
10
11class QuotesCrudController extends AbstractCrudController
12{
13    public static function getEntityFqcn(): string
14    {
15        return Quotes::class;
16    }
17
18    public function configureFields(string $pageName): iterable
19    {
20        yield IdField::new(propertyName: 'id')
21            ->onlyOnIndex();
22        yield TextField::new(propertyName: 'quote')
23            ->onlyOnIndex();
24        yield TextAreaField::new(propertyName: 'quote')
25            ->onlyOnForms();
26    }
27}