{"id":18720535,"url":"https://github.com/dennisinteractive/domain","last_synced_at":"2025-06-30T20:06:30.862Z","repository":{"id":46768780,"uuid":"80009515","full_name":"dennisinteractive/domain","owner":"dennisinteractive","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-04T12:56:23.000Z","size":2612,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":51,"default_branch":"dennis-8.x-1.x","last_synced_at":"2025-06-30T20:06:30.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dennisinteractive.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-25T11:44:11.000Z","updated_at":"2017-01-25T11:46:58.000Z","dependencies_parsed_at":"2022-09-06T23:10:09.298Z","dependency_job_id":null,"html_url":"https://github.com/dennisinteractive/domain","commit_stats":null,"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"purl":"pkg:github/dennisinteractive/domain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennisinteractive%2Fdomain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennisinteractive%2Fdomain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennisinteractive%2Fdomain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennisinteractive%2Fdomain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dennisinteractive","download_url":"https://codeload.github.com/dennisinteractive/domain/tar.gz/refs/heads/dennis-8.x-1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennisinteractive%2Fdomain/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262842922,"owners_count":23373167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T13:31:30.741Z","updated_at":"2025-06-30T20:06:30.831Z","avatar_url":"https://github.com/dennisinteractive.png","language":"PHP","readme":"Domain\n======\n\nDomain module for Drupal port to Drupal 8.\n\nActive branch is 8-x.1-x. Begin any forks from there.\n\nThe underlying API is stable, and it's currently usable for access control.\nThe configuration supports manual editing. Themes should work. Views and Bulk\nOperations are not yet supported.\n\nFor a complete feature status list, see [CHANGELOG.md](https://github.com/agentrickard/domain/blob/8.x-1.x/CHANGELOG.md)\n\nAlpha release updates\n------\n\nA limited set of updates are provided for major architecture changes during the\nalpha release.\n\nYou can run these updates by enabling the `domain_alpha` module and running\nDrupal's database updates. The updates and affected versions are:\n\n* Update 8001: Affects versions of Alpha6 or lower.\n\nImplementation Notes\n======\n\nCross-domain logins\n------\n\nTo use cross-domain logins, you must now set the *cookie_domain* value in\n*sites/default/services.yml*.\n\nTo do so, clone  `default.services.yml` to `services.yml` and change the\n`cookie_domain` value to match the root hostname of your sites. Note that\ncross-domain login requires the sharing of a top-level domain, so a setting like\n`*.example.com` will work for all `example.com` subdomains.\n\nSee https://www.drupal.org/node/2391871.\n\nTrusted host settings\n------\n\nIf using the trusted host security setting in Drupal 8, be sure to add each domain\nand alias to the pattern list. For example:\n\n```\n$settings['trusted_host_patterns'] = array(\n  '^*\\.example\\.com$',\n  '^myexample\\.com$',\n  '^localhost$',\n);\n```\n\nSee https://www.drupal.org/node/1992030 for more information.\n\nDomains and caching\n------\n\nIf some variable changes are not picked up when the page renders, you may need\nadd domain-sensitivity to the site's cache.\n\nTo do so, clone  `default.services.yml` to `services.yml` (if you have not\nalready done so) and change the `required_cache_contexts` value to:\n\n```YAML\n    required_cache_contexts: ['languages:language_interface', 'theme', 'user.permissions', 'url.site']\n```\n\nThe addition of `url.site` should provide the domain context that the cache\nlayer requires.\n\nContributing\n====\n\nIf you'd like to contribute, please do. Github forks and pull requests are preferable.\nIf you prefer a patch-based workflow, you can attach patches to GitHub issues or Drupal.org\nissues. If you open a Drupal.org issue, please link to it from the appropriate GitHub\nissue.\n\nThe GitHub issues are grouped under three milestones:\n\n1. Alpha -- items required for a test release. When this is complete, we will roll an\nalpha1 release on Drupal.org.\n2. Beta -- items considered critical features for a release. When complete, we will roll\na beta release on Drupal.org.\n3. Final -- items required for a stable, secure release on Drupal.org.\n\nWe would like to tackle issues in that order, but feel free to work on what motivates you.\n\nTesting\n====\n\n@zerolab built a Travis definition file for automated testing! That means all pull requests will automatically run tests!\n\n[![Build Status](https://travis-ci.org/agentrickard/domain.svg?branch=8.x-1.x)](https://travis-ci.org/agentrickard/domain)\n\nThe module does have solid test coverage, and complete coverage is required for release.\nRight now, we mostly use SimpleTest, because it is most familiar, and much of our\ntesting is about browser and http behavior.\n\nIf you file a pull request or patch, please (at a minimum) run the existing tests to check\nfor failures. Writing additional tests will greatly speed completion, as I won't commit\ncode without test coverage.\n\nI use SimpleTest, though unit tests would also be welcome -- as would kernel tests. Those\nmight take longer to review.\n\nBecause Domain requires varying http host requests to test, we can't normally use the Drupal.org\ntesting infrastructure. (This may change, but we are not counting on it.)\n\nTo setup a proper environment locally, you need multiple or wilcard domains configured to\npoint to your drupal instance. I use variants of `example.com` for local tests. See\n`DomainTestBase` for documentation. Domain testing should work with root hosts other than\n`example.com`, though we also expect to find the subdomains `one.*, two.*, three.*, four.*, five.*`\nin most test cases. See `DomainTestBase::domainCreateTestDomains()` for the logic.\n\nWhen running tests, you normally need to be on the default domain.\n\nIf anyone is capable of building a vagrant box to simplify testing, that would be ideal.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennisinteractive%2Fdomain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdennisinteractive%2Fdomain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennisinteractive%2Fdomain/lists"}