After upgrading a site I am working on to the new 1.3 release, I'm getting a bunch of notices on my node forms:

Notice: Undefined index: type in Drupal\pluginformalter\Plugin\InlineEntityFormAlterManager->getInstance() (line 45 of modules/contrib/pluginformalter/src/Plugin/InlineEntityFormAlterManager.php)

It appears that is coming from the check on $definition['type'] . I think type is set in the InlineEntityFormAlter but not the standard FormAlter annotation definition.

Comments

floydm created an issue. See original summary.

floydm’s picture

StatusFileSize
new668 bytes

The attached patch makes the notices go away, but I'm not sure if this is the right solution or if type needs to get set in all definitions.

floydm’s picture

Issue summary: View changes
floydm’s picture

Issue summary: View changes

  • c0d3754 committed on 8.x-1.x
    Issue #3316945 by floydm: Notice: Undefined index: type in line 45 of...
aronne’s picture

Status: Active » Fixed

Hi @floydm
and thank you for the patch.

Status: Fixed » Closed (fixed)

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