After adding or removing an operation in hook_entity_operation_info(), it seems I need to flush the cache twice before the change takes effect.

Probably caused by the way that entity_operations works internally..

Comments

donquixote created an issue.

donquixote’s picture

In my case it was a 'delete' operation:

    'delete' => array(
      'handler' => EntityOperationsOperationDelete::class,
      'provision' => array(
        'menu' => TRUE,
        'views field' => TRUE,
      ),
    ),

After a first cache clear, admin/content/nestedbox/5/delete was showing something, but no delete button.
After a second cc, the page showed a delete confirm form, as intended.