D8 - How to handle wildcard routes passing info to forms (as we could do in D7)?

(why is this editor so bad?? i can't cursor up to line above)

In D7 i could do this:

menu item:

$items['myform']

form submit:

$form_state['redirect'] = 'myform/' . $month;

myform form function:

function myform_form($form, &$form_state, $month = NULL) {

hopefully this makes sense. Basically i am able to pass arguments on to an existing route and then pull those off as function arguments in my form.

Date format inside TWIG

Hey all, I have a date field with a start and end date.  I have a complex set of rules that I use to display this field, based on what the dates are.  I have a custom twig template to handle this, but I'm having a little difficulty formatting the date in the way I want to.  What I want to do is take whatever format from the "Manage Display" form and use that inside my twig template.  This way I'm not manually adding PHP date formats in the template themselves, so if the client wants the date format to be different, there is no code push.

Error installing RESTful Web Services module

I am encountering the following error when trying to install the RESTful Web Services module.

The always_populate_raw_post_data PHP setting should be set to -1 in PHP version 5.6. Please check the PHP manual for information on how to correct this. (Currently using always_populate_raw_post_data PHP setting version Not set to -1.) 

In WHM i have turned on always_populate_raw_post_data and checked the php.ini file to verify.

After migration, safe to delete tables re "migrate map" and "migrate message"?

After upgrading from D7.50 to D8.4.4, the database contains these tables:

- migrate_map_5a...[lots of characters] (about 20 items; all with zero size)

- migrate_map_d7_[some kind of machine label, such as "menu"] -- there are a few dozen of this kind, some being empty and others of varying sizes ranging from 1 to about 55 (the one about "blocks")

And there is a similar pairing (lots of characters vs specific machine labels) with the prefix "migrate_message". These ones are mostly empty (zero size).

Anyone tried deleting these?

The website encountered an unexpected error. Please try again later.

Under Drupal 8.4.4; UniserverZ version 13 WAMP stack (PHP 7.1). After upgrade from D7 to D8, using the Migrate UI path. I might have more than one problem:

Update from 8.3.7 to 8.4.4

Just updated from 8.3.7 to 8.4.4. 

Everything went fine except that at the end got this error. 

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x