Skip to main content
41
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
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
How to use the Drupal REST API to trigger I've forgot (need to change) my...
Andrew Fletcher
To get the X-CSRF token, first, you need to login as a member.  Follow the...
Andrew Fletcher
In retrieving an image, the primary element required is: File id or...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up documentation. GET a node To get the content of the specific node you require the node.nid.  The key information required in the GET query: URL - your-site.com/node/<nid>?_format=hal_json; Content-Type - application/hal+json; Nod.nid - noted in the URL string as <nid>. Example using a node.nid of one (1).  So the nid in the URL is <nid> =...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
To POST an image is similar to the other posts mentioned on this site....
Andrew Fletcher
For an introduction to setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
How do you rebuild node access permissions using CLI? To rebuild permissions from the command-line using Drush: drush php-eval 'node_access_rebuild();'Or using Drupal Console: drupal node:access:rebuild 
Andrew Fletcher
The user API, was originally created under the General...
Andrew Fletcher
The development version of the app database is held on the staging site....
Andrew Fletcher
The user parameters provides details about a specific user based...
Andrew Fletcher
Attempting to update the database, irrespective whether I run update.php or...