


How do I use hook_search_api_solr_search_results_alter() to alter search results?
I want to alter the results of a Drupal 8.x search_api_solr search using hook_search_api_solr_search_results(): function sbn_search_api_solr_search_results_alter(Drupalsearch_apiQueryResultSetInterface $result_set, Drupalsearch_apiQueryQueryInterface $query,... read more
Can’t connect to remote DigitalOcean database
I am attempting to connect an existing Drupal 8 site to a DigitalOcean managed Database. The connection info I’ve received from DigitalOcean: username = digitaloceanadmin password = password host = nameofmydbcluster.db.ondigitalocean.com port = 25060 sslmode =... read more
Custom Drush command and Settigns::get(), Config::get()
how can I access site configuration when in Drush command? Global variable $config === null and when I use Config::get(‘key’), I get Error: Using $this when not in object context in DrupalCoreConfigConfig::get() (line 85 of... read more
How can I access webform submission values from webform-confirmation.html.twig
I have a webform with Inline confirmation, AJAX enabled and saving of submissions disabled. Is it possible to access the submitted values from the webform-confirmation.html.twig template? I know that I can do this by adding token values to the Confirmation message in... read more
composer require fails because it can’t delete default.services.yml
Using composer with Drupal (7, 8 & 9), composer require drupal/<package-name> returns the following error. Installation failed, reverting ./composer.json to its original content. [RuntimeException] Could not delete web/sites/default/default.services.yml How... read more
Is there a way to generate dummy content for custom entities?
Since the Devel module allows to generate content only for core entities: Accelerate development of your site or module by quickly generating nodes, comments, terms, users, and more. Is there a module or a proper way to generate fake content for custom entities? I... read more
How to add Jquery Validation to Custom form and set error to field?
I want to implement client side validation using jQuery on my custom form. I have enabled clientside validation contributed module I have successfully attached custom js file using following code: $form[‘#attached’][‘library’][] =... read more
Use hook_views_pre_render() to change field to url link
I want to use hook_views_pre_render() to read in a view and change a field output to a clickable link. Here is code: function sbn_views_pre_render(ViewExecutable $view) { //... read more
Using Blazy module? Your vote counts
If you are using Blazy module, please help decide the future for one of its features: custom breakpoints. Your vote counts We’ll close this voting by February 12, no matter what counts. Meaning if you are using this feature, and do not vote, you will lose or... read more