How to redirect the user to the home page?

How to redirect the user to the home page?

When users access the site, they are redirected to their user account page. I want to redirect them to the front page. If I leave the Default front page setting empty, users are redirect to their account page, while the description for the setting says they would be... read more
How to disable/hide submit button in webform based on a computed_twig element’s value

How to disable/hide submit button in webform based on a computed_twig element’s value

[sorry for the length of this message, I tried to provide a concise decription of my problem in order to make it easier for people to understand and help] Hello all, I have a webform comprised of 3 pages (two pages of input and a custom preview page). I explain the... read more
Custom migration source plugin not enabled in source site error

Custom migration source plugin not enabled in source site error

I’m trying to write a custom source plugin for a d7-d8 migration. I want to extend the DrupalnodePluginmigratesourced7 Node.php plugin. I’m getting the following error when I try to run the migration from the UI: Migration my_node_page did not meet the... read more
How does one add a Total(s) row to Views results?

How does one add a Total(s) row to Views results?

After doing some research, it seems like the best way to get a Total(s) row added to a Views table is via the Views Aggregator Plus module. (Is there an easier/better way?) As can be seen below, I’m trying to list a bunch of nodes grouped by the first column... read more
Custom migration source plugin not enabled in source site error

How to hide Forums from anonymous users?

I installed Forum module. So, I have ‘Forums’ link in ‘Tools’ menu corresponding to the path /forum defined in forum.routing.yml in which access is defined by _permission: ‘access content’. In my site, anonymous users are allowed to... read more
Custom migration source plugin not enabled in source site error

Inline entity form module fails when creating a new node and the reference method is Views

I have a Drupal 8, core version:8.8.x project, i’m using inline entity form module(latest version) for entity reference fields. Also i have tried using entity connect module but it caused various issues. The problem is when creating a new node, using the inline... read more
Custom migration source plugin not enabled in source site error

Get path alias of node on presave

I was trying to get the path alias using for nodes using the following code. Drupal::service(‘path.alias_manager’)->getAliasByPath(‘/node/’ . $nid); It works for nodes that are already created, but it breaks when a new node is being added. I... read more
Trigger a behavior from another module in Javascript?

Trigger a behavior from another module in Javascript?

The block_ajax module defines a behavior in its module: https://git.drupalcode.org/project/block_ajax/-/blob/8.x-1.x/js/refresh_ajax_block_command.js I want to initiate this call every 60 seconds so the contents of the block can refresh if there is new data from my... read more
Custom migration source plugin not enabled in source site error

Looping through an array using Migrate Plus

I’m trying to loop through an array (called “Attributes”) in a JSON migration source, but I can’t figure out how to do it. Here’s a shortened sample of my data source: [ { “Id”: “ST00000002”, “Title”:... read more