How to override Breadcrumb theme template?

How to override Breadcrumb theme template?

I have a custom theme that has base theme: classy setting in the mytheme.info.yml file. When we enable twig debugging locally, we find that the <!– BEGIN OUTPUT from ‘themes/custom/mytheme/templates/navigation/breadcrumb.html.twig’ –> is... read more
How do I use hook_search_api_solr_search_results_alter() to alter search results?

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
How do I use hook_search_api_solr_search_results_alter() to alter search results?

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
How do I use hook_search_api_solr_search_results_alter() to alter search results?

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 do I use hook_search_api_solr_search_results_alter() to alter search results?

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
How do I use hook_search_api_solr_search_results_alter() to alter search results?

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
How do I use hook_search_api_solr_search_results_alter() to alter search results?

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 do I use hook_search_api_solr_search_results_alter() to alter search results?

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
How do I use hook_search_api_solr_search_results_alter() to alter search results?

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
How do I use hook_search_api_solr_search_results_alter() to alter search results?

How can I check to see differences across my multisites?

Currently, we’re using Acquia Content Hub to syndicate content across our sites with a spoke and wheel syndication architecture. We essentially use a single site (that content editors use to create/maintain our content) and push out content to all of our... read more