Score:0

Is a php filter available for Drupal 10.1.2?

bh flag

Its been a few years since I've used Drupal (pretty much missing version 9), but I'm coming back to it with 10.1.2. I'm hoping to get a PHP filter installed for content, as I historically like to use PHP to include dynamic contents from non-Drupal sources.

Unfortunately, chasing down how to do this has been leading me in circles most of the morning, from the original filter in the 6/7 timeframe to apparently an optional core model in the 8/9 timeframe, but I've yet to find something for version 10 specifically, and Google searches using the version number happily pulls up earlier documentation.

Can someone provide a pointer to this functionality, if it exists, for 10.1.2?

id flag
Will will struggle greatly with Drupal's modern cache system by using the PHP module.
Score:1
us flag

Running PHP code via the PHP input filter has been considered a source of security issues; that is why the PHP input filter has been removed from Drupal core.
It has been moved to a contributed module, in the PHP project, but it has been created to help people migrate away from the PHP input filter. That is why the PHP project is not covered by security advisory policy, and the existing releases have been marked insecure.
It would not probably get a Drupal 10 release too.

Instead of using the PHP input filter, you need to create a module that implement the necessary hooks, services, controllers, or forms. A module can do everything the code handled by the PHP input filter can do, and much more.

Score:1
id flag

No. At the time I write this the PHP module is not yet ported to Drupal 10.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.