|
@@ -359,10 +359,8 @@ You can add custom items to the actions menu for a specific action by overriding
|
|
|
|
|
|
.. code-block:: php
|
|
.. 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) {
|
|
if (in_array($action, array('show', 'edit', 'acl')) && $object) {
|
|
$list['custom'] = array(
|
|
$list['custom'] = array(
|
|
'template' => 'AppBundle:Button:custom_button.html.twig',
|
|
'template' => 'AppBundle:Button:custom_button.html.twig',
|