- Issue created by @shalini_jha
- Assigned to Shreya_98
- 🇮🇳India viren18febS
HI @shalini_jha
You can try this as well!
composer require drupal/rat (RenderArrayTool (RAT)) - @shreya_th opened merge request.
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 12:36pm 29 September 2023 - 🇮🇳India Shreya_98
Hi @bojanz
I have solved this issue and also created MR for RenderArray not found in inline entity form render.
Kindly review the changes .Thank you.
- 🇮🇹Italy smurfxx
composer require drupal/rat solves the issue but is it possible to add this dependency via ludwig?
- 🇭🇷Croatia devad
Re: #6
Ludwig is not a proper place to add dependencies to other drupal modules. The .info file is a proper place for that.
See the related issue. - First commit to issue fork.
- Status changed to Needs work
5 months ago 9:45pm 1 July 2024 - 🇺🇸United States froboy Chicago, IL
@podarok I'm not sure the new class you're trying to import exists:
Error: Class "Drupal\Core\Render\RenderArray" not found in Drupal\inline_entity_form\Form\EntityInlineForm->entityForm() (line 216 of /var/www/docroot/modules/contrib/inline_entity_form/src/Form/EntityInlineForm.php).
I couldn't find anything similar anywhere. Tested on Drupal 10.0.x.
- 🇺🇸United States froboy Chicago, IL
It turns out RAT was installed (it lives at
vendor/drupal/rat
), but I needed to regenerate the composer autoloader:composer dump-autoload
That fixed it all up.
We had this issue after a drupal/rat update that introduced a git repo inside its directory that was rejected downstream (eg. Pantheon), so the vendor/drupal/rat directory remained empty downstream due to no changes being detected in composer.json on subsequent pushes.
We resolved it by removing and re-adding the directory to git:
git rm --cached vendor/drupal/rat git add vendor/drupal/rat git commit ... git push ...