After upgrading this module my site shows the next error:
Warning: Illegal offset type in ds_preprocess_ds_layout() (line 415 of modules/contrib/ds/ds.module).
I saw the file and the problem i think that is the array passed as second parameter:
$url = \Drupal::service('token')->replace($layout_settings['link_custom'], array($layout_settings => $variables['content']['#' . $entity_type]), array('clear' => TRUE));
These line must be:
$url = \Drupal::service('token')->replace($layout_settings['link_custom'], array($entity_type => $variables['content']['#' . $entity_type]), array('clear' => TRUE));
But if i change it the module return an fatal error when generate the URL string because there are internal and external links and the fromUri function is set to "internal" only.
If someone need more info please let me now.
Comments
Comment #2
razunter commented...and bug is still here :/
Comment #3
EricLemieux commentedI had a similar issue and created a patch that worked for me based on your comments.
Comment #4
swentel commentedLet's see what the bot thinks.
Comment #5
aspilicious commentedto avoid confusion we shoudl rename entity_type to entity_type_id but that's a different issue...
Comment #6
swentel commentedOk, nothing breaks, we need tests :)
Comment #7
swentel commentedActually, I can live without tests you know. Patch fixing that key + rename.
Comment #9
swentel commented