Hi all, I create a custom module and I want to know how can I set values into the webform submission fields (entity_type and entity_id) manually. I add a submit handler to get the id of the current submission. I loaded the webform submission by ID and now I have to set the entity type and the entity id manually. I know that the webform can detect these fields automatically, but I have a complicated client demand, that's why I have to make it manually.
In the "WebformSubmission.php" file I can't find "setSourceEntity()" function, and I just find the "getSourceEntity()".
I have two views bootstrap carousels in two different sites. Views > Advanced > Use Ajax to Yes for both. One site does not reload the page another site reloads the page during the slideshows. When I say "reload", it means if I am on the node where the slideshow is, I see the node is bit refreshed/auto scroll up(it may not be the complete reload like F5) as the slider is sliding.
I seem to have a comment field that is a remnant that I cannot get rid of. I have a website upgraded from Drupal 7 a couple years ago and am on Drupal 8.9.11. There are the 2 errors in my log, which indicate the error, but the error actually prevents a few other things on my website from working properly.
Field comment.comment_node_vegetation_communities.comment_body exists but is missing a corresponding field definition and may be misconfigured.
I know this is very old and know issue in Drupal and there a very handy dandy guide available to fix the problem and I know how to fix this issue BUT on an Apache server. I have been using apache all my career (more than 6 years now) and recently changed my mind to switch to nginx after a discussion with a colleague.