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

How can I fetch specific record from database table through PHP?

Hello there,

I need some help related to php. I have connected my DB with frontend web application through PHP. But I have a little bit problem with it. I want to fetch specific record from the database. Can anyone guide me how can I do it. I will appreciate your suggestions.

Thanks in advance.

Regards: [ link spam redacted]

Devel Module

What's going on with the Devel module? I frequently get the following: (In this case I was executing dpm($variables); in a theme_preprocess_menu function but this happens in other situations too.)

The website encountered an unexpected error. Please try again later.
Error: Class "Doctrine\Common\Util\Debug" not found in Drupal\devel\Plugin\Devel\Dumper\DoctrineDebug->export() (line 25 of modules/contrib/devel/src/Plugin/Devel/Dumper/DoctrineDebug.php). 

Efficient way to get entities related data

Hello,

I'm quite new in Drupal environment, sorry beforehand in case I'm asking something obviuos.

I have the scenary where I need to get some info from related entities. What I have seen so far is to construct an array of nodes id and then getting the specific fields. In some cases that is not really efficient.

Is this the only way to do it? Is there any way to "Query join entities getting field values"?.

Scenario example:

Entity1     Entity2    Entitiy3

E1Field1   E2Field1  E3Field1

E1Field2   E2Field2  E3Field2

Pager element not showing on form

I have a simple tableselect element inside my form and the tableselect rows are populated using a pager as follows:

Replace valid_email_address in custom module

Upgrading from Drupal 8.9 to Drupal 9.2.7 and I've run into an issue with a custom module that was created by a past developer.  The error has to do with valid_email_address.  I see that it was deprecated and then removed according to this link (https://api.drupal.org/api/drupal/core%21includes%21common.inc/function/valid_email_address/8.8.x)

react_social code

Hi All,

I was wondering if anyone has the react_social code. it is no longer available on github.

Thanks in advance.

Pages

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