Autocomplete field

I'm experimenting with how to customize an auto-complete field.
Filter the nodes in bae to various parameters
The code is this
  $storage = \Drupal::entityTypeManager()->getStorage('node');
    $qry = $storage->getQuery()
      ->condition( 'type', 'anagrafica_richiedenti' )
      ->condition('status', 1)
      ->condition('field_attivo', 1)
      ->sort( 'title', 'ASC' )
    ->execute();

Patching multi-value field with JSON:API

When patching a multi-value field using JSON:API, is it possible to add/remove a single value without re-writing the entire set of values?

Accessing additional external database

I have some functionality that relies on me connecting to an external db (read only), and I have configured it in my settings.php as such;

$databases['atavism']['default'] = array (
'database' => 'world',
'username' => 'redacted',
'password' => 'redacted',
'prefix' => '',
'host' => 'localhost',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
);

I then have this in my controller:

Admin user list

Is the user list at the backend a view? I have ptoblems with my views, so I can't access the views list and check this.

Add facabook-domain-verification metatag in home page

How do I add the below metatag to the <head> section in the html of the domain page/home page of the website.

<meta name="facebook-domain-verification" content="xyz" />

Urgent help required

How to adapt the appearance of Modal Flag to Bootstrap 4 ?

My website is with Drupal 8 and the Barrio theme (Bootstrap 4).

I have a problem with the Flag module and the Modal windows.

This is what a Modal window should look like :

https://i.stack.imgur.com/VPQ77.png

Here is what a Modal window looks like with the Flag module (the same problem appears on all contrib modules and core modals) :

https://i.stack.imgur.com/GNCzK.png

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x