24 lines
638 B
PHP
24 lines
638 B
PHP
<?php
|
|
|
|
namespace App\Controller\Admin;
|
|
|
|
use App\Entity\RoomCategoryPhoto;
|
|
use App\Entity\RoomCategoryPhotoKinds;
|
|
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\{TextField, IntegerField};
|
|
|
|
class RoomCategoryPhotoCrudController extends AbstractCrudController
|
|
{
|
|
public static function getEntityFqcn(): string
|
|
{
|
|
return RoomCategoryPhoto::class;
|
|
}
|
|
|
|
public function configureFields(string $pageName): iterable
|
|
{
|
|
yield TextField::new('path');
|
|
yield TextField::new('altText');
|
|
yield IntegerField::new('photoOrder');
|
|
}
|
|
|
|
} |