{"action":"created","comment":{"url":"https://api.github.com/repos/bojanz/address/pulls/comments/34303446","id":34303446,"diff_hunk":"@@ -0,0 +1,36 @@\n+<?php\n+\n+/**\n+ * @file\n+ * Contains \\Drupal\\address\\Zone\\Form\\ZoneDeleteForm.\n+ */\n+\n+namespace Drupal\\address\\Zone\\Form;\n+\n+use Drupal\\Core\\Entity\\EntityDeleteForm;\n+use Drupal\\Core\\Form\\FormStateInterface;\n+use Drupal\\Core\\Url;\n+\n+/**\n+ * Builds the form to delete a zone.\n+ */\n+class ZoneDeleteForm extends EntityDeleteForm {\n+\n+  /**\n+   * {@inheritdoc}\n+   */\n+  public function submitForm(array &$form, FormStateInterface $form_state) {\n+    try {\n+      $this->entity->delete();\n+      $form_state->setRedirectUrl($this->getCancelUrl());\n+      drupal_set_message($this->t('Zone %label has been deleted.', array('%label' => $this->entity->label())));","path":"src/Form/ZoneDeleteForm.php","position":26,"original_position":26,"commit_id":"e1bfb4ae625cb049179a3c2dd8ad14d5914a2117","original_commit_id":"e1bfb4ae625cb049179a3c2dd8ad14d5914a2117","user":{"login":"bojanz","id":330162,"avatar_url":"https://avatars.githubusercontent.com/u/330162?v=3","gravatar_id":"","url":"https://api.github.com/users/bojanz","html_url":"https://github.com/bojanz","followers_url":"https://api.github.com/users/bojanz/followers","following_url":"https://api.github.com/users/bojanz/following{/other_user}","gists_url":"https://api.github.com/users/bojanz/gists{/gist_id}","starred_url":"https://api.github.com/users/bojanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojanz/subscriptions","organizations_url":"https://api.github.com/users/bojanz/orgs","repos_url":"https://api.github.com/users/bojanz/repos","events_url":"https://api.github.com/users/bojanz/events{/privacy}","received_events_url":"https://api.github.com/users/bojanz/received_events","type":"User","site_admin":false},"body":"These two are the last ones :)","created_at":"2015-07-09T21:04:09Z","updated_at":"2015-07-09T21:04:09Z","html_url":"https://github.com/bojanz/address/pull/6#discussion_r34303446","pull_request_url":"https://api.github.com/repos/bojanz/address/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/bojanz/address/pulls/comments/34303446"},"html":{"href":"https://github.com/bojanz/address/pull/6#discussion_r34303446"},"pull_request":{"href":"https://api.github.com/repos/bojanz/address/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/bojanz/address/pulls/6","id":32809680,"html_url":"https://github.com/bojanz/address/pull/6","diff_url":"https://github.com/bojanz/address/pull/6.diff","patch_url":"https://github.com/bojanz/address/pull/6.patch","issue_url":"https://api.github.com/repos/bojanz/address/issues/6","number":6,"state":"open","locked":false,"title":"WIP Initial work on integrating the Zone library as an entity+plugin combo","user":{"login":"Kazanir","id":4731136,"avatar_url":"https://avatars.githubusercontent.com/u/4731136?v=3","gravatar_id":"","url":"https://api.github.com/users/Kazanir","html_url":"https://github.com/Kazanir","followers_url":"https://api.github.com/users/Kazanir/followers","following_url":"https://api.github.com/users/Kazanir/following{/other_user}","gists_url":"https://api.github.com/users/Kazanir/gists{/gist_id}","starred_url":"https://api.github.com/users/Kazanir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kazanir/subscriptions","organizations_url":"https://api.github.com/users/Kazanir/orgs","repos_url":"https://api.github.com/users/Kazanir/repos","events_url":"https://api.github.com/users/Kazanir/events{/privacy}","received_events_url":"https://api.github.com/users/Kazanir/received_events","type":"User","site_admin":false},"body":"Needs the actual forms for each zone member type created and integrated in a way that loads the containing entity and saves it properly in the form submit. The rest is mostly there.","created_at":"2015-04-07T21:54:22Z","updated_at":"2015-07-09T21:04:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d17bb0869d229848cc219e76fdba26a4a3240db5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bojanz/address/pulls/6/commits","review_comments_url":"https://api.github.com/repos/bojanz/address/pulls/6/comments","review_comment_url":"https://api.github.com/repos/bojanz/address/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bojanz/address/issues/6/comments","statuses_url":"https://api.github.com/repos/bojanz/address/statuses/e1bfb4ae625cb049179a3c2dd8ad14d5914a2117","head":{"label":"Kazanir:8.x-1.x","ref":"8.x-1.x","sha":"e1bfb4ae625cb049179a3c2dd8ad14d5914a2117","user":{"login":"Kazanir","id":4731136,"avatar_url":"https://avatars.githubusercontent.com/u/4731136?v=3","gravatar_id":"","url":"https://api.github.com/users/Kazanir","html_url":"https://github.com/Kazanir","followers_url":"https://api.github.com/users/Kazanir/followers","following_url":"https://api.github.com/users/Kazanir/following{/other_user}","gists_url":"https://api.github.com/users/Kazanir/gists{/gist_id}","starred_url":"https://api.github.com/users/Kazanir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kazanir/subscriptions","organizations_url":"https://api.github.com/users/Kazanir/orgs","repos_url":"https://api.github.com/users/Kazanir/repos","events_url":"https://api.github.com/users/Kazanir/events{/privacy}","received_events_url":"https://api.github.com/users/Kazanir/received_events","type":"User","site_admin":false},"repo":{"id":33570238,"name":"address","full_name":"Kazanir/address","owner":{"login":"Kazanir","id":4731136,"avatar_url":"https://avatars.githubusercontent.com/u/4731136?v=3","gravatar_id":"","url":"https://api.github.com/users/Kazanir","html_url":"https://github.com/Kazanir","followers_url":"https://api.github.com/users/Kazanir/followers","following_url":"https://api.github.com/users/Kazanir/following{/other_user}","gists_url":"https://api.github.com/users/Kazanir/gists{/gist_id}","starred_url":"https://api.github.com/users/Kazanir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kazanir/subscriptions","organizations_url":"https://api.github.com/users/Kazanir/orgs","repos_url":"https://api.github.com/users/Kazanir/repos","events_url":"https://api.github.com/users/Kazanir/events{/privacy}","received_events_url":"https://api.github.com/users/Kazanir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kazanir/address","description":"D8 port of the addressfield module","fork":true,"url":"https://api.github.com/repos/Kazanir/address","forks_url":"https://api.github.com/repos/Kazanir/address/forks","keys_url":"https://api.github.com/repos/Kazanir/address/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kazanir/address/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kazanir/address/teams","hooks_url":"https://api.github.com/repos/Kazanir/address/hooks","issue_events_url":"https://api.github.com/repos/Kazanir/address/issues/events{/number}","events_url":"https://api.github.com/repos/Kazanir/address/events","assignees_url":"https://api.github.com/repos/Kazanir/address/assignees{/user}","branches_url":"https://api.github.com/repos/Kazanir/address/branches{/branch}","tags_url":"https://api.github.com/repos/Kazanir/address/tags","blobs_url":"https://api.github.com/repos/Kazanir/address/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kazanir/address/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kazanir/address/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kazanir/address/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kazanir/address/statuses/{sha}","languages_url":"https://api.github.com/repos/Kazanir/address/languages","stargazers_url":"https://api.github.com/repos/Kazanir/address/stargazers","contributors_url":"https://api.github.com/repos/Kazanir/address/contributors","subscribers_url":"https://api.github.com/repos/Kazanir/address/subscribers","subscription_url":"https://api.github.com/repos/Kazanir/address/subscription","commits_url":"https://api.github.com/repos/Kazanir/address/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kazanir/address/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kazanir/address/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kazanir/address/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kazanir/address/contents/{+path}","compare_url":"https://api.github.com/repos/Kazanir/address/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kazanir/address/merges","archive_url":"https://api.github.com/repos/Kazanir/address/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kazanir/address/downloads","issues_url":"https://api.github.com/repos/Kazanir/address/issues{/number}","pulls_url":"https://api.github.com/repos/Kazanir/address/pulls{/number}","milestones_url":"https://api.github.com/repos/Kazanir/address/milestones{/number}","notifications_url":"https://api.github.com/repos/Kazanir/address/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kazanir/address/labels{/name}","releases_url":"https://api.github.com/repos/Kazanir/address/releases{/id}","created_at":"2015-04-07T21:52:47Z","updated_at":"2015-05-08T17:59:52Z","pushed_at":"2015-07-09T19:15:25Z","git_url":"git://github.com/Kazanir/address.git","ssh_url":"git@github.com:Kazanir/address.git","clone_url":"https://github.com/Kazanir/address.git","svn_url":"https://github.com/Kazanir/address","homepage":null,"size":155,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"8.x-1.x"}},"base":{"label":"bojanz:8.x-1.x","ref":"8.x-1.x","sha":"148546b57fc79391616e364faa72a02a2e4b8428","user":{"login":"bojanz","id":330162,"avatar_url":"https://avatars.githubusercontent.com/u/330162?v=3","gravatar_id":"","url":"https://api.github.com/users/bojanz","html_url":"https://github.com/bojanz","followers_url":"https://api.github.com/users/bojanz/followers","following_url":"https://api.github.com/users/bojanz/following{/other_user}","gists_url":"https://api.github.com/users/bojanz/gists{/gist_id}","starred_url":"https://api.github.com/users/bojanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojanz/subscriptions","organizations_url":"https://api.github.com/users/bojanz/orgs","repos_url":"https://api.github.com/users/bojanz/repos","events_url":"https://api.github.com/users/bojanz/events{/privacy}","received_events_url":"https://api.github.com/users/bojanz/received_events","type":"User","site_admin":false},"repo":{"id":28631805,"name":"address","full_name":"bojanz/address","owner":{"login":"bojanz","id":330162,"avatar_url":"https://avatars.githubusercontent.com/u/330162?v=3","gravatar_id":"","url":"https://api.github.com/users/bojanz","html_url":"https://github.com/bojanz","followers_url":"https://api.github.com/users/bojanz/followers","following_url":"https://api.github.com/users/bojanz/following{/other_user}","gists_url":"https://api.github.com/users/bojanz/gists{/gist_id}","starred_url":"https://api.github.com/users/bojanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojanz/subscriptions","organizations_url":"https://api.github.com/users/bojanz/orgs","repos_url":"https://api.github.com/users/bojanz/repos","events_url":"https://api.github.com/users/bojanz/events{/privacy}","received_events_url":"https://api.github.com/users/bojanz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bojanz/address","description":"D8 port of the addressfield module","fork":false,"url":"https://api.github.com/repos/bojanz/address","forks_url":"https://api.github.com/repos/bojanz/address/forks","keys_url":"https://api.github.com/repos/bojanz/address/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bojanz/address/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bojanz/address/teams","hooks_url":"https://api.github.com/repos/bojanz/address/hooks","issue_events_url":"https://api.github.com/repos/bojanz/address/issues/events{/number}","events_url":"https://api.github.com/repos/bojanz/address/events","assignees_url":"https://api.github.com/repos/bojanz/address/assignees{/user}","branches_url":"https://api.github.com/repos/bojanz/address/branches{/branch}","tags_url":"https://api.github.com/repos/bojanz/address/tags","blobs_url":"https://api.github.com/repos/bojanz/address/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bojanz/address/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bojanz/address/git/refs{/sha}","trees_url":"https://api.github.com/repos/bojanz/address/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bojanz/address/statuses/{sha}","languages_url":"https://api.github.com/repos/bojanz/address/languages","stargazers_url":"https://api.github.com/repos/bojanz/address/stargazers","contributors_url":"https://api.github.com/repos/bojanz/address/contributors","subscribers_url":"https://api.github.com/repos/bojanz/address/subscribers","subscription_url":"https://api.github.com/repos/bojanz/address/subscription","commits_url":"https://api.github.com/repos/bojanz/address/commits{/sha}","git_commits_url":"https://api.github.com/repos/bojanz/address/git/commits{/sha}","comments_url":"https://api.github.com/repos/bojanz/address/comments{/number}","issue_comment_url":"https://api.github.com/repos/bojanz/address/issues/comments{/number}","contents_url":"https://api.github.com/repos/bojanz/address/contents/{+path}","compare_url":"https://api.github.com/repos/bojanz/address/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bojanz/address/merges","archive_url":"https://api.github.com/repos/bojanz/address/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bojanz/address/downloads","issues_url":"https://api.github.com/repos/bojanz/address/issues{/number}","pulls_url":"https://api.github.com/repos/bojanz/address/pulls{/number}","milestones_url":"https://api.github.com/repos/bojanz/address/milestones{/number}","notifications_url":"https://api.github.com/repos/bojanz/address/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bojanz/address/labels{/name}","releases_url":"https://api.github.com/repos/bojanz/address/releases{/id}","created_at":"2014-12-30T13:29:04Z","updated_at":"2015-05-08T06:22:54Z","pushed_at":"2015-07-09T19:15:25Z","git_url":"git://github.com/bojanz/address.git","ssh_url":"git@github.com:bojanz/address.git","clone_url":"https://github.com/bojanz/address.git","svn_url":"https://github.com/bojanz/address","homepage":null,"size":436,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":2,"default_branch":"8.x-1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/bojanz/address/pulls/6"},"html":{"href":"https://github.com/bojanz/address/pull/6"},"issue":{"href":"https://api.github.com/repos/bojanz/address/issues/6"},"comments":{"href":"https://api.github.com/repos/bojanz/address/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/bojanz/address/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/bojanz/address/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bojanz/address/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/bojanz/address/statuses/e1bfb4ae625cb049179a3c2dd8ad14d5914a2117"}}}}