Provide a controller to download the PDF as discussed in the comments:
* Class PdfGeneratorController.
Then don't use custom block types because they are stored in content entities.
Use blocks storing only configuration. You can build a custom block plugin, even with a body field. See Custom block build function to display wysiwyg body text
There are also some contrib options like Simple Block which is implementing a config entity for blocks.
As described in Support for automatic entity updates has been removed, when a module needs to update its own entity, and the update must change the database schema, the module needs to implement hook_post_update_NAME(). That is what the Taxonomy module does in taxonomy_post_update_make_taxonomy_term_revisionable() to make its entity revisionable.
The key ...
Just an addition for windows users.
lesley n. answer above works just fine for Windows users as well.
Just edit C:\Users\your_username\.bash_profile and add one line:
Restart your Git Bash, go to your drupal site home folder and try:
It should work
I was able to make composer-installed Drupal Console to work ...
Seems hook_node_access is not longer called for the create operation. Use hook_ENTITY_TYPE_create_access instead.
See hook_node_access() no longer fires for the 'create' operation for background info and code samples on how to change your code.
Also arg() is deprecated.
I tried to do the same in D7 a while ago and I discovered a JS only solution is not possible. You need to add an ajax command to the Drupal callback.
Here's a similar question to yours. This one is about the upload button and you want the remove button.
In D7, the upload and remove button were handled by the same function and when I look at the D8 class of ...
The libraries folder is no longer managed by Drupal. The project Libraries doing this jobs in older Drupal versions seems to be deprecated in favor of a composer based concept. Modules still using the libraries folder use their own logic and you have to follow their instructions on the project page or README.