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

tableselect element not displaying radios

Using Bootstrap base and robotic sub to theme site. I have tried to apply each patch wile getting (Could not apply patch! Skipping. The error was: Cannot apply patch) errors out... In the debug I am able to have the radios display by using radios instead of radio.

<input data-drupal-selector="edit-selected-life-144" type="radio" id="edit-selected-life-144" name="selected_life" value="144" class="form-radio form-control">

If I change type="radio" to type="radios" it works.

Get entity for textfilter

I have created a custom textfilter. That filter may fail on some pages.

My idea is to log these fails so the user can fix these. Problem is that i can not find out how to get the entity that filter is run and failed for.

As textfields can be attached to any entity i can not just check for "node". Any ideas or hints? Thank you.

Btw. it is for the contrib module: https://www.drupal.org/project/amazon_pa

Customer Only Viewable Page

Is there a way to setup a page that only someone who has purchased something can view it?

General "authenticated users" could not be able to view it.

Thanks

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:

Pages

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