diff --git a/README.md b/README.md index deadbd4..7f24d67 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,7 @@ use App\Entity\Category; * managerType="orm", * group="Category", * showInDashboard=true, + * showMosaicButton=true, * keepOpen=true, * onTop=true, * icon="", diff --git a/src/Annotation/AdminOptions.php b/src/Annotation/AdminOptions.php index 343a596..9d2d9ae 100644 --- a/src/Annotation/AdminOptions.php +++ b/src/Annotation/AdminOptions.php @@ -32,6 +32,11 @@ final class AdminOptions */ public $showInDashboard = true; + /** + * @var bool + */ + public $showMosaicButton = true; + /** * @var bool */ @@ -90,6 +95,7 @@ public function getOptions(): array 'group' => $this->group, 'label' => $this->label, 'show_in_dashboard' => $this->showInDashboard, + 'show_mosaic_button' => $this->showMosaicButton, 'keep_open' => $this->keepOpen, 'on_top' => $this->onTop, 'icon' => $this->icon, diff --git a/tests/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPassTest.php b/tests/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPassTest.php index 033fc76..e06849f 100644 --- a/tests/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPassTest.php +++ b/tests/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPassTest.php @@ -94,6 +94,7 @@ public function processData(): array 'manager_type' => 'orm', 'label' => 'Category', 'show_in_dashboard' => true, + 'show_mosaic_button' => true, 'keep_open' => false, 'on_top' => false, ], @@ -106,6 +107,7 @@ public function processData(): array 'manager_type' => 'orm', 'label' => 'This is a Label', 'show_in_dashboard' => true, + 'show_mosaic_button' => true, 'keep_open' => false, 'on_top' => false, ], @@ -118,6 +120,7 @@ public function processData(): array 'manager_type' => 'orm', 'label' => 'Disable Autowire Entity', 'show_in_dashboard' => true, + 'show_mosaic_button' => true, 'keep_open' => false, 'on_top' => false, ],