python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Change input submit form control to button form control in Drupal 9 Forms API
I want to replace input submit form control by a button form control into Drupal 9 Forms API. It seems not to be standard because the type of the submit button seems to be hard coded into the Forms AP...
Simon Janvier
Votes: 0
Answers: 0
How to programmatically query the translated content of a block in drupal9
I created a block, the default language is English and the translation language is Chinese. Now I query the content of this block in my code:
$block = \Drupal::entityTypeManager()->getStorage('bloc...
River Zhao
Votes: 0
Answers: 1
Implementation of hook_block()
I found this code online and I would like to implement it. However, I have never worked with hook functions.
My question is when I put this code into a brand new php file ex: uc_microcartTest.php .
Ho...

Vel
Votes: 0
Answers: 1
Drupal 9: implementing custom functionality in PHP
I would really appreciate it if somebody would give me some hints about implementing/inserting custom functionality into a drupal 9 page with PHP code.
I am trying to write a PHP function that is gene...
Anna Alma
Votes: 0
Answers: 2