Prechádzať zdrojové kódy

use signature from AdminExtensionInterface (#4354)

Oliver Tischlinger 8 rokov pred
rodič
commit
c2acb98798

+ 1 - 3
Resources/doc/reference/advanced_configuration.rst

@@ -359,10 +359,8 @@ You can add custom items to the actions menu for a specific action by overriding
 
 .. code-block:: php
 
-    public function configureActionButtons($action, $object = null)
+    public function configureActionButtons(AdminInterface $admin, $list, $action, $object)
     {
-        $list = parent::configureActionButtons($action, $object);
-
         if (in_array($action, array('show', 'edit', 'acl')) && $object) {
             $list['custom'] = array(
                 'template' => 'AppBundle:Button:custom_button.html.twig',