瀏覽代碼

use signature from AdminExtensionInterface (#4354)

Oliver Tischlinger 8 年之前
父節點
當前提交
c2acb98798
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      Resources/doc/reference/advanced_configuration.rst

+ 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',