Skip to content

nedlukies/EasyAdminEmbedBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embedded Relations for EasyAdminBundle

Based on a pull request by lukasluecke

EasyCorp/EasyAdminBundle#3543

Installation

I recommend that you don't. However:

composer require madforit/easyadmin-embed-bundle

Usage

Change your CRUD controller to extend Madforit\EasyAdminEmbedBundle\Controller\AbstractCrudController

class MyCrudController extends \Madforit\EasyAdminEmbedBundle\Controller\AbstractCrudController {
    
    public function configureFields(string $pageName): iterable {
        // Unfortunately you have to specify the template here
        yield EmbedField::new('relation_field')->setTemplatePath('@EasyAdminEmbed/crud/field/embed.html.twig')
    }
}

About

Addition to EasyAdminBundle to allow embedded tables on tabs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published