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).

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:

Comments

coaston created an issue. See original summary.

edysmp’s picture

Patch welcomed ;)

coaston’s picture

Well currently this module does not work at all with drupal 11. So hope anyone will help.

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

nickolaj’s picture

Status: Active » Needs review

Fixed 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`.

  • edysmp committed c9958ebd on 1.0.x authored by nickolaj
    fix: #3576513 Unable to use in views
    
    By: coaston
    By: edysmp
    By:...
edysmp’s picture

Status: Needs review » Fixed

Thanks guys!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

coaston’s picture

Thank you, it works now

Status: Fixed » Closed (fixed)

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