{"id":15173001,"url":"https://github.com/2dareis2do/virtual_edit_link_field","last_synced_at":"2026-02-19T12:01:38.361Z","repository":{"id":128014062,"uuid":"460971164","full_name":"2dareis2do/virtual_edit_link_field","owner":"2dareis2do","description":"Virtual Edit Link Field","archived":false,"fork":false,"pushed_at":"2022-03-15T18:17:27.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T20:41:20.925Z","etag":null,"topics":["contenta","drupal8","json-api","php"],"latest_commit_sha":null,"homepage":"https://github.com/2dareis2do","language":"PHP","has_issues":false,"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/2dareis2do.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2022-02-18T18:56:17.000Z","updated_at":"2022-02-18T20:15:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"87216be8-6454-4067-9429-73652e14638b","html_url":"https://github.com/2dareis2do/virtual_edit_link_field","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/2dareis2do/virtual_edit_link_field","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2dareis2do%2Fvirtual_edit_link_field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2dareis2do%2Fvirtual_edit_link_field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2dareis2do%2Fvirtual_edit_link_field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2dareis2do%2Fvirtual_edit_link_field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2dareis2do","download_url":"https://codeload.github.com/2dareis2do/virtual_edit_link_field/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2dareis2do%2Fvirtual_edit_link_field/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29612508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T10:52:55.328Z","status":"ssl_error","status_checked_at":"2026-02-19T10:52:26.323Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["contenta","drupal8","json-api","php"],"created_at":"2024-09-27T10:25:08.265Z","updated_at":"2026-02-19T12:01:38.317Z","avatar_url":"https://github.com/2dareis2do.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Virtual Edit Link Field\n\nWhen working in a de-coupled environment it might be useful to output a Drupal\nentity's edit link as part of a RESTful implementation (such as when using \nDrupal's core JSON API that comes preinstalled on Drupal Distro such as \ncontenta).\n\n## Install\n\nDownload and install like any other Drupal Module. Consider installing via \ncomposer as is recommended by Drupal.\n\n## Usage\n\nThere is pretty much no config required. Once enabled you should see the \nvirtual `editLink` field output in the attributes array along with all other \nfields that are exposed to the REST API and other modules.\n\nTimeout is currently set to 1 day (60s x 60 x 24).\n\ne.g.\n\n``  \"attributes\": {\n                \"internalId\": 3,\n                \"isPublished\": true,\n                \"title\": \"The umami guide to our favorite mushrooms\",\n                \"createdAt\": \"2022-02-17T01:34:43+0100\",\n                \"updatedAt\": \"2022-02-17T19:31:05+0100\",\n                \"isPromoted\": true,\n                \"path\": \"/articles/the-umami-guide-to-our-favourite-mushrooms\",\n                \"editLink\": \"http://drupal.docker.localhost/node/3/edit\",``\n\n## Todo \n\n- Tests for different scenarios \n  - i.e. accessing pages via api / page\n  - check not being able to access after logging out etc.\n- Make timeout configurable","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2dareis2do%2Fvirtual_edit_link_field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2dareis2do%2Fvirtual_edit_link_field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2dareis2do%2Fvirtual_edit_link_field/lists"}