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
22
results
Andrew Fletcher
•
This code is from Drupal 9 back-end for a React front-end via REST API.
Working through the output for recently viewed pages... the code structure:
<?php
namespace Drupal\custom\Plugin\GetData\paragraph;
use Drupal\custom\Plugin\GetData\ContentBase;
use Drupal\custom\Plugin\GetData\ParagraphTrait;
use Drupal\node\Entity\Node;
/**
* Provides Recent view pages data.
*
* @GetData(
* id = "recent_view_pages",
* title = @Translation("Recent view pages Data"),
* )
*/
class...
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
•
xdebug - failed to solve with frontend dockerfile.v0: failed to create LLB...
Andrew Fletcher
•
Is Docker installed?
Check if your installation is ok and spin up Docker as...
Andrew Fletcher
•
Having Drupal Solr Search APi running, I thought adding synonyms to the mix would be a smooth process.
Install synonym module
I cam across a synonym module created by Jens Beltofte - Search API Synonym. Working on a Drupal 9.3.x installation, this module needs to be accessed via Git Search API Synonym,
There are lots of great tips as you work through the installation, depending on what version of Drupal and Drush you are using.
Drush commands
Once you have...
Andrew Fletcher
•
Time is essential to all of us... and if you are like me there is never enough...