Skip to main content
143
results
Andrew Fletcher
If you are using theme_get_settings, such as: $value = trim(theme_get_setting('my_setting')); Then in your code editor you will also be seeing undefined  function 'theme_get_setting'.  This function has been deprecated for some time.   Instead, you need to use Passing the theme.manager and theme.initialization services to theme_handler constructor as optional parameters is deprecated. These parameters are also mandatory. $theme_handler = \Drupal::service('theme_handler');Get...
Andrew Fletcher
Having access to a site’s URL in your templates can come in handy for many...
Andrew Fletcher
I want to create a content type that has a paragraph.  Easy enough. What...
Andrew Fletcher
Creating URL's in Drupal programmatically: Internal path use...
Andrew Fletcher
Working in Drupal 9.x, I was loading images via the Media module.  Below 1...
Andrew Fletcher
Have you tried to run a composer update script that has bower-asset/jquery-ui-slider-pips set?  I have and realised that jquery-ui-slider-pips package had been removed.  So I added it back, and ran the command composer update. composer update Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires bower-asset/jquery-ui-slider-pips, it...
Andrew Fletcher
Since upgrading to Drupal 9.3.0 have you come across this error? Edit...
Andrew Fletcher
Have you noticed through your Google account that there are items being indexed...
Andrew Fletcher
When you have an entity ID value such as node ID (nid) or taxonomy term ID, how...
Andrew Fletcher
In drupal 9 for logging you can use logger service to log array data...
Andrew Fletcher
Adding Solr config zip (ie. solr_8.x_config.zip) to your remote server.  In this instance I'll be adding Solr config to a AWS EC2 server.   Log in to your remote server, then as you need to work as root type: sudo suGo to your solr directory: cd /var/solr/If you don't know the location of your solr directory run: find / -name solr -type dYou can find more information about how to search on Terminal Commands Find. Access your solr config directory through: cd...
Andrew Fletcher
Following is a series of steps to install Tika and have it running for your Solr...
Andrew Fletcher
You can create a new date/time format by navigating to: Admin ->...
Andrew Fletcher
To assist in finding possible solutions some of the queries that I made...
Andrew Fletcher
Creating a message log using Drupal watchdog.   Simple log // Logs a...