Explorar o código

Update advance.rst

Added documentation for easy and clean way to disable create/delete functionality for some Admin Class
zhil %!s(int64=12) %!d(string=hai) anos
pai
achega
4b24cddc87
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Resources/doc/reference/advance.rst

+ 4 - 0
Resources/doc/reference/advance.rst

@@ -103,6 +103,10 @@ If you want to create your own RouteBuilder, you can do it using code like
             {
                 parent::build($admin,$collection);
                 $collection->add('yourSubAction');
+                // Create button will dissappear, delete functionality will be disabled as well
+                // No more changes needed!
+                $collection->remove('create');
+                $collection->remove('delete');
             }
         }