{"id":21908946,"url":"https://github.com/skilld-labs/domain_entity","last_synced_at":"2025-07-01T03:38:08.955Z","repository":{"id":75328155,"uuid":"78797956","full_name":"skilld-labs/domain_entity","owner":"skilld-labs","description":"Domain Access Entity https://www.drupal.org/node/2843173 Drupal 8 porting","archived":false,"fork":false,"pushed_at":"2017-08-12T15:03:20.000Z","size":82,"stargazers_count":2,"open_issues_count":2,"forks_count":4,"subscribers_count":9,"default_branch":"8.x-1.x","last_synced_at":"2025-04-16T01:54:09.580Z","etag":null,"topics":["drupal","drupal-8","drupal-module"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skilld-labs.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-01-12T23:56:50.000Z","updated_at":"2017-09-27T15:02:45.000Z","dependencies_parsed_at":"2023-06-06T04:15:42.792Z","dependency_job_id":null,"html_url":"https://github.com/skilld-labs/domain_entity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skilld-labs/domain_entity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skilld-labs%2Fdomain_entity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skilld-labs%2Fdomain_entity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skilld-labs%2Fdomain_entity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skilld-labs%2Fdomain_entity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skilld-labs","download_url":"https://codeload.github.com/skilld-labs/domain_entity/tar.gz/refs/heads/8.x-1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skilld-labs%2Fdomain_entity/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261200373,"owners_count":23123945,"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":["drupal","drupal-8","drupal-module"],"created_at":"2024-11-28T17:14:27.723Z","updated_at":"2025-07-01T03:38:08.942Z","avatar_url":"https://github.com/skilld-labs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"1) Overview\n\nThis module provide a solution to add Domain Access on entity.\n\nYou can use this module to restrict access for entity as you do with node.\n\nYou can choose for each bundle the assignation behavior you want to use :\n\n    - Affiliate automatically created entity to a value \n\t(no widget on entity creation form, auto-assignation)\n    - User choose affiliate, with a default value \n\t(form widget on the entity creation form)\n\nThe access rule is basic for front end user (without specific permission):\n\n    entity data is only accessible on the domain(s) it's assigned to.\n    This is the default behavior for user in administration and front office.\n\nFor administration / administrator:\n\n    Site contributors, with specific permission can access and/or edit content\n\tof multiple domain.\n    The user need to be assigned to the domain he can edit (in user/*/edit)\n    And need the permission \"access entities affiliate on assigned domains\"\n    With domain views, You can create list of entities and expose the domain\n\tfield, to filter entities by domain.\n\nTo use this module with views, you need to disable sql rewriting on some views.\n(open your views -\u003e go in advanced settings pane -\u003e query settings), \nif you don't want to disable sql rewriting, you can add manually a view filter\non the field that hold the domain(s) entity.\n\nFor administration views you can expose to Editors \nthe filter of the domain field of your entity\n\n\n2) Features\n\n- Enable Domain Access on entities\n- UI for enabling domain access on entity type, \n  and batch update of existing entities\n- views integration\n\n\n3) Requirements\n\n- Domain Access http://drupal.org/project/domain\n\n  Extra requirements:\n- To expose domain filter in views: domain views\n\n\n5) Setup\n\n- Enable domain_entity\n- setup at least one domain..\n- Access to admin/structure/domain/entities\n- Use the forms to enable domain on entity types, you can choose \n  the behavior widget used for each bundle \n  (existing content of your website will be assigned \n   to the default bundle domain value)\n- After you activate domain access, all entity will be filtered \n  by domain, if you migrate entities without assign it \n  to at least one domain, these entities became inaccessible.\n- For site administrator roles that you want to allow to see \n  multiple domain entities on one domain (only in administration path):\n\n    - Create a user\n    - Add a role to the user with the permission \n\t  \"access entities affiliate on assigned domains\"\n    - Assign the user to the domain(s) he can access \n\t  (\"Affiliate editor options\" in admin/people)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskilld-labs%2Fdomain_entity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskilld-labs%2Fdomain_entity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskilld-labs%2Fdomain_entity/lists"}