Problem/Motivation
Once I add new view - unformatted list and "show Content - Entity Form" row i am getting following issue (Drupal 11.3.3 and Php 8.3+:
TypeError: Drupal\Core\Entity\ContentEntityForm::__construct(): Argument #2 ($entity_type_bundle_info) must be of type Drupal\Core\Entity\EntityTypeBundleInfoInterface, Drupal\Core\TempStore\PrivateTempStoreFactory given, called in /modules/contrib/views_entity_form_row/src/Form/ViewsEntityFormRowNodeForm.php on line 58 in Drupal\Core\Entity\ContentEntityForm->__construct() (line 56 of /core/lib/Drupal/Core/Entity/ContentEntityForm.php).
Issue fork views_entity_form_row-3576513
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:
Comments
Comment #2
edysmpPatch welcomed ;)
Comment #3
coaston commentedWell currently this module does not work at all with drupal 11. So hope anyone will help.
Comment #6
nickolajFixed the `ViewsEntityFormRowNodeForm` constructor to pass the correct arguments to `ContentEntityForm::__construct()`. The parent call was passing `PrivateTempStoreFactory` as the second argument where `EntityTypeBundleInfoInterface` is expected, causing a TypeError on Drupal 11. Removed unused services (`PrivateTempStoreFactory`, `AccountInterface`, `DateFormatterInterface`) that are not needed since the class extends `ContentEntityForm`, not `NodeForm`.
Comment #8
edysmpThanks guys!
Comment #10
coaston commentedThank you, it works now