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:| /** | |
| * @file | |
| * Tooltip plugin. | |
| */ | |
| (function (Drupal, CKEDITOR) { | |
| CKEDITOR.plugins.add('tooltip', { | |
| icons: 'tooltip', | |
| init: function (editor) { | |
| // Stop now if not allowed to use editor. |
| <?php | |
| /* | |
| * Complete the 'getMinClicks' function below. | |
| * | |
| * The function is expected to return an INTEGER. | |
| * The function accepts following parameters: | |
| * 1. INTEGER lowest_channel | |
| * 2. INTEGER highest_channel | |
| * 3. INTEGER_ARRAY blocked_channels |
| <?php | |
| use Drupal\Core\Entity\ContentEntityInterface; | |
| use Drupal\Core\Entity\FieldableEntityInterface; | |
| $entity_types = \Drupal::service('entity_type.manager')->getDefinitions(); | |
| /** @var \Drupal\Core\Config\Entity\ConfigEntityInterface $entity_type */ | |
| foreach ($entity_types as $entity_type) { | |
| // Stop now if entity type is not fieldable. |
| <?php | |
| /** | |
| * Implements hook_entity_base_field_info(). | |
| */ | |
| function mymodule_entity_base_field_info(EntityTypeInterface $entity_type) { | |
| if ($entity_type->id() == 'user') { | |
| $fields = []; | |
| $default_field_definition = [ |
| $args = []; | |
| $form['user_in_charge'] += [ | |
| '#title' => t('Entity autocomplete'), | |
| '#type' => 'entity_autocomplete', | |
| '#selection_handler' => 'views', | |
| '#selection_settings' => [ | |
| 'view' => [ | |
| 'view_name' => 'view_machine_name', | |
| 'display_name' => 'entity_reference', |
| This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
| ✅ did:3:bafyreicudk4v2rlu4lt2ip7oi4kssudctl22j2p3ojqnekz7c3xcqpwmje ✅ | |
| Create your profile today to start building social connection and trust online at https://3Box.io/ |
| name: wordpress | |
| recipe: wordpress | |
| services: | |
| appserver: | |
| webroot: . | |
| xdebug: debug | |
| config: | |
| php: .vscode/php.ini | |
| tooling: | |
| install:wordpress: |
| <?php | |
| // Reorder actions. | |
| $order = [ | |
| 'previous', | |
| 'reset', | |
| 'submit', | |
| 'preview_next', | |
| ]; |
| //Files should be `644` I think | |
| find . -type f -exec chmod u=rw,g=r,o=r {} \; | |
| // Folders should be `executable | |
| find . -type d -exec chmod u=rwx,g=rx,o=rx {} \; |