Requries core dev tools:
composer require drupal/core-dev
| #!/bin/bash | |
| # Check if a URL was provided | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <URL>" | |
| exit 1 | |
| fi | |
| # Assign the first argument to a variable | |
| URL="$1" |
In .lando.yml:
proxy:
appserver:
- hostname: mysite.lndo.site
middlewares:
- name: CanBeAnything
key: 'basicauth.users'
value: 'lando:$$apr1$$5HI8Qwxp$$2/jNlE4mlQA0JPWblBSfy1'| diff --git a/src/Importer.php b/src/Importer.php | |
| index 423c8ff..cbc19e1 100644 | |
| --- a/src/Importer.php | |
| +++ b/src/Importer.php | |
| @@ -288,6 +288,11 @@ class Importer implements ImporterInterface { | |
| $entity = $this->contentEntityNormalizer->denormalize(Yaml::decode($contents)); | |
| } | |
| + // Skip if exists. | |
| + if (\Drupal::service('entity.repository')->loadEntityByUuid($entity->getEntityTypeId(), $entity->uuid())) { |