See https://www.drupal.org/project/drupal/issues/3089751 & https://www.drupal.org/forum/support/theme-development/2018-12-08/prevent-form-actions-from-appearing-in-a-modal-dialog
In mytheme.libraries.yml
dialog.ajax:
js:| <?php | |
| // Programmatically create taxonomy terms for taxonomy module on install. | |
| // This is the bar.install file included in a module. | |
| use Drupal\taxonomy\Entity\Term; | |
| use Symfony\Component\Yaml\Yaml; | |
| function foo_taxonomy_install() { | |
| $vocabularies = [ |
| #!/bin/bash | |
| # This is a simple build script and will be executed on your CI system if | |
| # available. Otherwise it will execute while your application is stopped | |
| # before the deploy step. This script gets executed directly, so it | |
| # could be python, php, ruby, etc. | |
| tarball="https://go.googlecode.com/files/go1.0.3.linux-amd64.tar.gz" | |
| # Set GOROOT since we dont use GOROOT_FINAL | |
| export GOROOT="$OPENSHIFT_HOMEDIR/app-root/data/go" |
| <!DOCTYPE html> | |
| <html<?php print $html_attributes; ?>> | |
| <head> | |
| <?php print $head; ?> | |
| <title><?php print $head_title; ?></title> | |
| <?php print $styles; ?> | |
| <?php print $head_scripts; ?> | |
| </head> | |
| <body<?php print $body_attributes;?>> |
| # PHP Extensions available for PHP 5.3.X | |
| php_extensions: | |
| - amqp | |
| - apc | |
| - apm | |
| - bcmath | |
| - bcompiler | |
| - bz2 | |
| - calendar | |
| - ctype |