developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
23
results
Andrew Fletcher
•
Import a database
lando db-import doj.sqlEnter the MySQL database
lando mysql -h database
This action will change the prompt as you are now in mysql. The prompt will start with
mysql>Now change to the database that you want to use
use doj;If you want to know what databases exist, then run
show databases;Response
+--------------------+
| Database |
+--------------------+
| information_schema |
| doj |
| mysql |
| performance_schema |
| sys ...
Andrew Fletcher
•
How do you rebuild node access permissions using CLI?
To rebuild permissions...
Andrew Fletcher
•
Attempting to update the database, irrespective whether I run update.php or...
Andrew Fletcher
•
Updating to PHP 8.1, I found this interesting code stop...
Deprecated function:...
Andrew Fletcher
•
Is Docker installed?
Check if your installation is ok and spin up Docker as...
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 Drupal Solr Search APi running, I thought adding synonyms to the mix...
Andrew Fletcher
•
I had the issue where I needed to filter an array list by a specific column....