I have been tasked with adding eccomerce functionality to my Drupal 8 site.
Currently I am looking at the Commerce 2.x module to help me with achieving this.
The problem I am currently facing is that I am required to store and query all content in a custom database and the Commerce 2.x module looks like it relies heavily on Drupals native database.
I am facing an error in extracting audio files uploaded in zip format. The error is as follows- Argument 2 passed to Drupal\Core\Archiver\Zip::extract() must be of the type array, string given,
The following is the code:
public function buildForm(array $form, FormStateInterface $form_state, $node = NULL) {
I want to execute an ajax request on page load in D8. (intention to execute some process on page load which I have done using hook_boot in D7, Now I am trying to achieve in Drupal 8.7.6)
I have used event subscriber (refered https://www.qed42.com/blog/porting-hookinit-drupal8). I have added mymodule.libraries.yml file where I have mentioned about JS file, I have included JS file via hook_preprocess hook in mymodule.module file.