reorganized menu
This commit is contained in:
		@@ -13,16 +13,18 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
class QuotesCrudController extends AbstractCrudController
 | 
					class QuotesCrudController extends AbstractCrudController
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public static function getEntityFqcn(): string
 | 
						public static function getEntityFqcn(): string
 | 
				
			||||||
    {
 | 
						{
 | 
				
			||||||
        return Quotes::class;
 | 
							return Quotes::class;
 | 
				
			||||||
    }
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
    public function configureFields(string $pageName): iterable
 | 
						public function configureFields(string $pageName): iterable
 | 
				
			||||||
    {
 | 
						{
 | 
				
			||||||
        return [
 | 
							yield IdField::new(propertyName: 'id')
 | 
				
			||||||
	        IdField::new(propertyName: 'id'),
 | 
								->onlyOnIndex();
 | 
				
			||||||
	        TextField::new(propertyName: 'quote'),
 | 
							yield TextField::new(propertyName: 'quote')
 | 
				
			||||||
        ];
 | 
								->onlyOnIndex();
 | 
				
			||||||
    }
 | 
							yield TextEditorField::new(propertyName: 'quote')
 | 
				
			||||||
 | 
								->onlyOnForms();
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user