This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

How to redirect with POST method & parameters to external URL

Hello Friends,

From inside a controller, I am trying to add a redirect to a external URL with the POST method & parameters attached.

I can succesfully redirect to a external URL via my controller using

return new TrustedRedirectResponse('https://google.com');

How do I set the Redirect method to POST and attach paramaters?

Below is a example of the data I would like to send via the redirect.

How to catch xapi statements

Hi to everyone.

I want to catch specific xapi statement( in a vector or in a variable)  from H5p such as result.score.duration from Question set. I m using php code for my module.

Thanks

Creating a Custom Text Filter

I am following this Lullabot post about building a text filter: https://www.lullabot.com/articles/creating-a-custom-filter-in-drupal-8

I have created the celebrate.info.yml file in the main folder for the Celebrate module /modules/celebrate/celebrate.info.yml

I have created the FilterCelebrate.php at in the nested folder: /modules/celebrate/src/Plugin/Filter/FilterCelebrate.php

Set custom field on term save

Hi,

I've set a custom field on a term as "field_code" and I want to automatically set it to the field "name" 's value if not set (on term edit/add form)

I've created a custom module and created a callback on submit

language_selection_page redirects without displaying anything

Language selection module 8.x.2.3. I have 2 languages enabled, each setup with it's own url /en & /fr. The detection and selection has the correct order

 URL > Cookie > Language Selection page > Selected Language

The standalone template has been set and the html--language-selection.html.twig page created from html.html.twig.

When I visit the site www.mysite.com/language-selection it immediately redirects to the front page mysite.com/en.

Module uninstall- what data is removed

In drupal8 one cant disable modules - you have to remove them and along with it the data.

i want to remove the contact module since it doesn’t appear to work well - but is there anyway to figure out what precisely the data is that it will be removing??

more generally is there a way to figure out what data a given module creates and manages??

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions