I saw warning messages like following after having module 'unique_field' installed:

User error: "bundle" is an invalid render array key in Drupal\Core\Render\Element::children()

The reason is that the variable $form['bundle'] injected is not a valid Drupal 8 form element and can't be rendered. To fix/bypass the warnings, I changed variable name from $form['bundle'] to $form['#bundle']. It might not be a perfect solution but it works.

Patch file attached.

CommentFileSizeAuthor
#2 2861318.2.patch3.85 KBdeminy
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

deminy created an issue. See original summary.

deminy’s picture

FileSize
3.85 KB
marcusx’s picture

AstonVictor made their first commit to this issue’s fork.

AstonVictor’s picture

Status: Active » Fixed

thanks for the patch.

fixed.