At the moment, it is not possible to delete a feed entity.

When using the form on /admin/content/feed to delete a feed entity, it states 'Delete selected feeds was applied to 1 item.' but nothing actually happens.

After some deep debugging, I have found the cause.

The annotation for DeleteFeedDrupal\feeds\Plugin\Action\DeleteFeed uses the parameter

confirm_form_path

where in Drupal\system\Plugin\views\field\BulkForm, the viewsFormSubmit() method expects the parameter

confirm_form_route_name

e.g.

$operation_definition = $action->getPluginDefinition();
if (!empty($operation_definition['confirm_form_route_name'])) {
  $options = array(
    'query' => $this->getDestinationArray(),
  );
  $form_state->setRedirect($operation_definition['confirm_form_route_name'], array(), $options);
}

After changing the annotation to use confirm_form_route_name instead, it is now possible to delete feed entities as you do get redirected to the deletion confirm form.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rossb89 created an issue. See original summary.

rossb89’s picture

Assigned: rossb89 » Unassigned
Status: Active » Needs review
FileSize
603 bytes

  • MegaChriz committed cb85be6 on 8.x-3.x authored by rossb89
    Issue #2770399 by rossb89: Fixed unable to delete feed with from /admin/...
MegaChriz’s picture

Status: Needs review » Fixed

I compared Drupal\feeds\Plugin\Action\DeleteFeed with Drupal\node\Plugin\Action\DeleteNode and in the DeleteNode class the key for the route is also 'confirm_form_route_name'.

Committed #2.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.