I've created a view programmatically, and it has a couple of displays, besides "default": block_1 and page_1. It could have more displays in the future, it depends of the user's requirements.
I have created a rest Resource POST API that will post some content to my application(from frontend created using angular js) that further needed to be stored in DB. Now I need some way to authenticate the anonymous user that fills out the form.
Im not sure if anyone else has got this error or not, but when I try to perform a validation $form_state->setErrorI am getting an error
LogicException: The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code so that is not necessary. Alternatively, look at DependencySerializationTrait as a temporary solution. in Drupal\Core\Database\Connection->__sleep()
custom javascript is added through twig {{attach_library()}} tags, and libraries containing '.js' files are defined inside of THEME.libraries.yml settings files, so it seems that the YML file would be the best place to define attributes for a script tag, most specifically,
<SCRIPT type= "text/javascript"></SCRIPT> ' attributes
is there support within the YML files for defining the 'type' attribute?
If not, can it be called within the attach_library() twig call?
Pantheon returns this script error when instances are in 'GIT' mode exclusively