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.
Comment | File | Size | Author |
---|---|---|---|
#2 | unable_to_delete_feed-2770399-2.patch | 603 bytes | rossb89 |
|
Comments
Comment #2
rossb89 CreditAttribution: rossb89 at ComputerMinds commentedComment #4
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedI 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.