Bläddra i källkod

AbstractFieldDefinition : ajout field

feature/symfony6.1
Guillaume 2 år sedan
förälder
incheckning
bc61cac980
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. +4
    -0
      Definition/Field/AbstractFieldDefinition.php

+ 4
- 0
Definition/Field/AbstractFieldDefinition.php Visa fil

@@ -8,6 +8,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\FormField;
use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
use Lc\SovBundle\Field\CKEditorField;
use Lc\SovBundle\Field\CollectionField;
use Lc\SovBundle\Field\ImageManagerField;
use Lc\SovBundle\Field\StatusField;
@@ -29,6 +30,9 @@ abstract class AbstractFieldDefinition
{
return [
'id' => IntegerField::new('id')->onlyOnIndex()->setSortable(true),
'title' => TextField::new('title'),
'description' => CKEditorField::new('description'),
'image' => ImageManagerField::new('image'),
'metaTitle' => TextField::new('metaTitle')
->setLabel('Meta : title')
->setHelp('Affiché dans les résultats de recherche Google'),

Laddar…
Avbryt
Spara