This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Schema API - How to access the $defaultSchema

Hi everyone, I'm working on functional tests for a module in Drupal 8.9 using postgresql as the db

The issue is that during a functional test, what I think is happening is the schema name changes to a test******* where the asterisks is a randomized number.

Because I have sub functions that altered the creation of tables by adding my own schema to the SQL statements (simple use schemaname.tablename) in the queries, this errors out when I try to determine if a table exists.

Custom REST API Code - post request is not working

Hi,

I have been trying to write a custom REST API following this documentation - https://www.drupal.org/docs/drupal-apis/restful-web-services-api/custom-...

And I have successfully made the GET request work. I was trying to add a POST request along with this. This is my code to test it:

How to check intelligently for requirements in the .install-file?

I'm knitting a module (for D8, D9) with a requirement: emojis must be available (they're probably available for 99% of the users. I'm just trying to be nice to the 1%).

I've put this in the .install-file:

Search Access backed by Search API Solr

Hi, 

I have a site which has search functionality powered by Apache Solr . I am using search API for integration . 

The problem is Solr server generally goes down after few days , If I give permission to anonymous users to use search functionality ( View permission seat to Anonymous)

If I restrict the usage to Verified users then solr server stays stable . 

I feel spammers are firing many queries if search is open and bringing down solr . 

What could be the possible ways to solve this issue . I want to keep the search open to anonymous user. 

Get username in an Article

Hello everybody

I'm really new to drupal, so here's my newbie question,

I Just would like to write an Article that contains the username (Johndoe) to get something like :
 

Hello Johndoe, this article is for you

Is that even possible ? 

really sorry for this dumb question

FarmOS for Country of Georgia

We really liked your FarmOS project for medium and small farms in the Country of Georgia for implementation at the national level - we are planning to add certain functions and some changes in accordance with the needs of Georgia. We need to find developers team for applying changes to FarmOS v2 after we will clarify requirements according to country needs will be done 

If you are interested, please contact me by email at christine.jojua@gmail.com

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions