Drupal 8 - Accessing request params in Controller

Hi

Here's a newbie question:

How do i get access to $_POST and $_GET variables in the Controller class? I just want to submit a form and get the values.

Thanks

Upgrading from 6 to 8, upgrade in place?

I'm approaching week 10 of trying to get a relatively simple D6 site to upgrade to D8. The migrate tools, either through drush or through the web UI appear to get us nowhere - content is never moved, users are moved, but the information seems incorrect and it appears permissions are changed - as well as user1 from the new site being overwritten with user1 from the old site, making admin access somewhat wonkey.

I'm wondering if a traditional in-place upgrade is even an option. It seems that it can't be as bad, let alone worse, than using the upgrade tools...

Display a views block only when referenced, but not fixed in a region

Hello everbody,

I'm a new Drupal user (it's awesome!), currently on D8 and after days of building and reading I have a problem that I cannot solve without your help:

It is possible to display a Views block, that is referenced in an entity reference field of a content type, without placing it inside a region (aka leave it in the 'Disabled' region in the Block layout but still have the block enabled somehow)?

autocomplete field question on drupal 8

I create my Field type, "Done type", using FieldType,FieldWidget and FIeldFormatter. I have Two field, "First name" which is autocomplete and Last name. Using tags vocabulary for First name autocomplete. on typing my first name autocomplete field can not filter terms which is begin typing symbols like tags filed. Viewing video.

https://www.youtube.com/watch?v=qMh-bVCFJvg&feature=youtu.be

DoneWidget

Dynamically hiding / showing form API fields in Drupal 8

I have created custom module in drupal 8. My requirement is by default some fields will invisible mode. If user clicks on "More Options" fields need to visible and if user clicks on "Fewer Option" then fields will be hide mode. How can i achieve this in drupal 8 custom form.

Thanks,
Ramesh S

Drupal 8 - Get domain url in mail template

Hi,

I would like to get the domain url to my website in the mail template (use with a contact form).

I create a plugin to manage my mail system.
I add the $base_url variable in hook_mail : $variables['base_url'] = $base_url;
and get it on my template with {{ base_url }}

But I get nothing

Have you an idea ?
Thanks

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x