Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mtift’s picture

Issue tags: +WSCCI-conversion

Anything that's "take something from hook_menu and make a route of it" should get the WSCCI-conversion tag

mtift’s picture

Assigned: Unassigned » mtift

It take this one.

mtift’s picture

Status: Active » Needs review
FileSize
4.59 KB

This feels very close, but for some reason, the $entity object is not getting passed in buildForm().

tim.plunkett’s picture

+++ b/core/modules/block/lib/Drupal/block/Form/AdminBlockDeleteForm.phpundefined
@@ -0,0 +1,72 @@
+  public function buildForm(array $form, array &$form_state, Block $entity = null) {

This should be Block $block = NULL

+++ b/core/modules/block/lib/Drupal/block/Form/AdminBlockDeleteForm.phpundefined
@@ -0,0 +1,72 @@
+    $this->block = $entity;

And $this->block = $block;

The parameters of blockForm have to match what is in the {slug} in the route.

Status: Needs review » Needs work

The last submitted patch, drupal-block_confirm_form-1946334-3.patch, failed testing.

mtift’s picture

Status: Needs work » Needs review
FileSize
895 bytes
4.59 KB

This is working for me in my local dev environment, so I'm feeling hopeful.

Status: Needs review » Needs work

The last submitted patch, drupal-block_confirm_form-1946334-6.patch, failed testing.

mtift’s picture

Status: Needs work » Needs review
FileSize
690 bytes
4.69 KB

Hopefully fixed the remaining fail by adding (back) the message that appears after the block has been deleted

ParisLiakos’s picture

ParisLiakos’s picture

Status: Needs review » Needs work
mtift’s picture

Status: Needs work » Needs review
FileSize
1.47 KB
4.46 KB

Here's an updated patch that uses inheritdocs

ParisLiakos’s picture

Status: Needs review » Reviewed & tested by the community

thanks!
ready to go if bot agrees

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

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