Install
Works with Drupal: 8.xUsing Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This release adds the concept of Aliased Environments for development. Each domain alias can now be assigned to an environment group. The default set of environments are:
- default
- local
- development
- staging
- testing
When re-writing links, the environment will be used to find matching sets across your aliases. That means that working in example.local will write links to one.example.local if both aliases are assigned to the 'local' environment set.
The use of environments is entirely optional. The 'default' environment will be assigned to all existing aliases. When reading from the 'default' environment, no links are rewritten.
When editing a domain alias, the list of current environments is also shown.
See the information under Development Workflow in the Domain Alias README.md file.
To use this new feature, your sire's services.yml must be configured with url.site as a required cache context.
To do so, clone default.services.yml to services.yml (if you have not already done so) and change the required_cache_contexts value to:
required_cache_contexts: ['languages:language_interface', 'theme', 'user.permissions', 'url.site']
Updating
This release includes settings and schema changes for Domain Alias. An update is provided and only required if you use that module.
API changes
- Aliases now have environments, and can be looked up by environment.
- Domains now have a 'canonical' property which indicated the base hostname. The canonical is used for text representations of the domain hostname in the UI, as the hostname may be overwritten by Domain Alias.
Issues fixed
- Adds warnings and descriptions to permissions.
- Validation fails when changing the domain machine name
- Delete system actions on domain delete.
- Clarifies handling of translation permissions.
- Update links to use canonical hostname.
- Adds canonical hostnames for use with aliases.
- Adds tests for alias-based environment loading.
- Issue #2866259: Trusted host pattern example in the readme file does not work by vasi1186: Trusted host pattern example in the readme file does not work
- Show alias table on form.
- Easier handling of domain alias environments.
- Adds method for finding matching alias per environment.
- Adds new field schema to domain_alias entities.
- Implement hook_requirements for Domain Content.