I enabled all the restful services and rest api such that postman REST API requests work including "post" rest/node/article. However when I type up this code, I get an error 400: bad request and the drupal error logs claim that the error is because rest/node/article doesn't exist despite it working before. Please help.
<?php
use Drupal\Core\DrupalKernel;
use Drupal\Core\Site\Settings;
use Symfony\Component\HttpFoundation\Request;
$autoloader = require_once __DIR__ . '/vendor/autoload.php';
use GuzzleHttp\Client;
to submit an EntityForm from an external app through a drupal module. Saving the form triggers a rule. One of the form fields is an entity reference, the Entity object is used by the rule. How can I programatically populate this field prior to saving the form? Thanks in advance.
Hi all.
I am trying to use Kint dump from devel module and have 'paragraph' module installed.
I have a content type that uses several paragraphs as content types.
I can style both the individual fields from the paragraphs and the content at the node though I wish to add some html wrappers to the paragraph itself.
My tree
content type= clothing
clothing field=paragraph of type 'style' which has fields of stylenamegender and images.