Problems with config synchronisation

Hi,

I have an old Drupal installation not installed over composer crea.... and a new installation with composer-installation. 

I changed the site uuid via 

drush config-set "system.site" uuid "fjfj34-e3bb-2ab8-4d21-9100-b5etgetgd99d5"

The UUID in the example is not the right one. I changed it.

I have the right path to the configuration sync folder. But I have some problems. I always get the error:

How to create a view, getting arguments by url?

Hi friends

I'm using drupal 8, I've created a content type with 3 languages translator,
and then i've created a REST export view and i added those fields,
but i would like to know how to get those items passing a parameter by url,

for example /news?language=en that will get the nodes that are in english,
and /news?language=fr that will get the nodes that are in french

how can i get that parameter and use it on my views to get that items?

Could you please help me?

Regards
Mario

A Virtual Try-on App Integrated with Drupal Aids In-store Beauty Advisors and Increases Engagement

Srijan blended an AI/AR based virtual try-on solution with the client’s in-store application to provide a holistic customer experience.

Sectors: 
Beauty and Fashion

How to submit a new module (and related questions)

Hi,

at my office we are preparing D7→D8/D9 migration. We make large use of Generic Jammer module (a submodule of https://www.drupal.org/project/jammer), which is not maintained anymore (and not ported to D8).

I rewrited this submodule, including many new features I created for Generic Jammer but which was never integrated. Still not ready for production, but all the features are present.

So my questions:

What's the Order of Upgrade Events between D9, PHP 7.4, Composer 2.0 and Lando

I'm currently running Drupal 8.9.13, PHP 7.3, Lando 3.0.14, Docker 2.3.0.5, and Composer 1.10.1. I recognize all of these need to be upgraded as well as contrib modules (some of which require the latest Drupal/Composer/etc.). I'm looking for guidance as to what order these should be upgraded. What comes first? 
PHP 7.3 => 7.4
Drupal 8.9.13 => 9.0.X
Lando 3.0.14 => 3.0.26
Composer 1.10.1 => 2.X
Do contrib module dependencies come before or after the above?

Use group module - in my own custom module

I am using the Group module, and are developing a custom module from where I need to programmatically add and remove users from groups.

I have been trying to do the following (should be fairly simple from what I can understand) 

$group = \Drupal\group\Entity\Group::load($gid);
$user = \Drupal\user\Entity\User::load($uid);
$group->addMember($user);

But when I run this code, I get an error:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x