{"action":"created","comment":{"url":"https://api.github.com/repos/backdrop/backdrop/pulls/comments/48702369","id":48702369,"diff_hunk":"@@ -0,0 +1,89 @@\n+<?php\n+\n+/**\n+ *  CustomTextBlock extends Block\n+ *  \n+ *  This class allows us to create custom text blocks.\n+ */\n+class CustomTextBlock extends Block {\n+  /**\n+   *  Sets title text on draggable block panel in Layout builder.\n+   */\n+  function getAdminTitle() {\n+    return t('Custom text block');\n+  }\n+\n+  /**\n+   *  Sets description text on draggable block in Layout builder.\n+   */\n+  function getAdminPreview() {\n+    $label_text = !empty($this->settings['subject']) ? ': ' . check_plain($this->settings['subject']) : '';\n+    $preview = '<p>Custom text' . $label_text;\n+    $preview .= '</p>';\n+    ","path":"core/modules/layout/includes/custom_text_block.inc","position":23,"original_position":23,"commit_id":"6e3432d7c487d0f606f5f0d83db651ec0115aa58","original_commit_id":"6e3432d7c487d0f606f5f0d83db651ec0115aa58","user":{"login":"jenlampton","id":397895,"avatar_url":"https://avatars.githubusercontent.com/u/397895?v=3","gravatar_id":"","url":"https://api.github.com/users/jenlampton","html_url":"https://github.com/jenlampton","followers_url":"https://api.github.com/users/jenlampton/followers","following_url":"https://api.github.com/users/jenlampton/following{/other_user}","gists_url":"https://api.github.com/users/jenlampton/gists{/gist_id}","starred_url":"https://api.github.com/users/jenlampton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenlampton/subscriptions","organizations_url":"https://api.github.com/users/jenlampton/orgs","repos_url":"https://api.github.com/users/jenlampton/repos","events_url":"https://api.github.com/users/jenlampton/events{/privacy}","received_events_url":"https://api.github.com/users/jenlampton/received_events","type":"User","site_admin":false},"body":"whitespace here should be removed.","created_at":"2016-01-04T03:22:25Z","updated_at":"2016-01-04T03:22:25Z","html_url":"https://github.com/backdrop/backdrop/pull/1096#discussion_r48702369","pull_request_url":"https://api.github.com/repos/backdrop/backdrop/pulls/1096","_links":{"self":{"href":"https://api.github.com/repos/backdrop/backdrop/pulls/comments/48702369"},"html":{"href":"https://github.com/backdrop/backdrop/pull/1096#discussion_r48702369"},"pull_request":{"href":"https://api.github.com/repos/backdrop/backdrop/pulls/1096"}}},"pull_request":{"url":"https://api.github.com/repos/backdrop/backdrop/pulls/1096","id":46237982,"html_url":"https://github.com/backdrop/backdrop/pull/1096","diff_url":"https://github.com/backdrop/backdrop/pull/1096.diff","patch_url":"https://github.com/backdrop/backdrop/pull/1096.patch","issue_url":"https://api.github.com/repos/backdrop/backdrop/issues/1096","number":1096,"state":"open","locked":false,"title":"Issue#1099: Add a custom text block","user":{"login":"docwilmot","id":1042283,"avatar_url":"https://avatars.githubusercontent.com/u/1042283?v=3","gravatar_id":"","url":"https://api.github.com/users/docwilmot","html_url":"https://github.com/docwilmot","followers_url":"https://api.github.com/users/docwilmot/followers","following_url":"https://api.github.com/users/docwilmot/following{/other_user}","gists_url":"https://api.github.com/users/docwilmot/gists{/gist_id}","starred_url":"https://api.github.com/users/docwilmot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docwilmot/subscriptions","organizations_url":"https://api.github.com/users/docwilmot/orgs","repos_url":"https://api.github.com/users/docwilmot/repos","events_url":"https://api.github.com/users/docwilmot/events{/privacy}","received_events_url":"https://api.github.com/users/docwilmot/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/backdrop/backdrop-issues/issues/1099\r\nReplaces https://github.com/backdrop/backdrop/pull/1092","created_at":"2015-09-29T05:31:14Z","updated_at":"2016-01-04T03:22:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d17455856c4579b53d2b355cb581b722c55752df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/backdrop/backdrop/pulls/1096/commits","review_comments_url":"https://api.github.com/repos/backdrop/backdrop/pulls/1096/comments","review_comment_url":"https://api.github.com/repos/backdrop/backdrop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/backdrop/backdrop/issues/1096/comments","statuses_url":"https://api.github.com/repos/backdrop/backdrop/statuses/6e3432d7c487d0f606f5f0d83db651ec0115aa58","head":{"label":"docwilmot:custom-text-block","ref":"custom-text-block","sha":"6e3432d7c487d0f606f5f0d83db651ec0115aa58","user":{"login":"docwilmot","id":1042283,"avatar_url":"https://avatars.githubusercontent.com/u/1042283?v=3","gravatar_id":"","url":"https://api.github.com/users/docwilmot","html_url":"https://github.com/docwilmot","followers_url":"https://api.github.com/users/docwilmot/followers","following_url":"https://api.github.com/users/docwilmot/following{/other_user}","gists_url":"https://api.github.com/users/docwilmot/gists{/gist_id}","starred_url":"https://api.github.com/users/docwilmot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docwilmot/subscriptions","organizations_url":"https://api.github.com/users/docwilmot/orgs","repos_url":"https://api.github.com/users/docwilmot/repos","events_url":"https://api.github.com/users/docwilmot/events{/privacy}","received_events_url":"https://api.github.com/users/docwilmot/received_events","type":"User","site_admin":false},"repo":{"id":28466458,"name":"backdrop","full_name":"docwilmot/backdrop","owner":{"login":"docwilmot","id":1042283,"avatar_url":"https://avatars.githubusercontent.com/u/1042283?v=3","gravatar_id":"","url":"https://api.github.com/users/docwilmot","html_url":"https://github.com/docwilmot","followers_url":"https://api.github.com/users/docwilmot/followers","following_url":"https://api.github.com/users/docwilmot/following{/other_user}","gists_url":"https://api.github.com/users/docwilmot/gists{/gist_id}","starred_url":"https://api.github.com/users/docwilmot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docwilmot/subscriptions","organizations_url":"https://api.github.com/users/docwilmot/orgs","repos_url":"https://api.github.com/users/docwilmot/repos","events_url":"https://api.github.com/users/docwilmot/events{/privacy}","received_events_url":"https://api.github.com/users/docwilmot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/docwilmot/backdrop","description":"Backdrop core code repository.","fork":true,"url":"https://api.github.com/repos/docwilmot/backdrop","forks_url":"https://api.github.com/repos/docwilmot/backdrop/forks","keys_url":"https://api.github.com/repos/docwilmot/backdrop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docwilmot/backdrop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docwilmot/backdrop/teams","hooks_url":"https://api.github.com/repos/docwilmot/backdrop/hooks","issue_events_url":"https://api.github.com/repos/docwilmot/backdrop/issues/events{/number}","events_url":"https://api.github.com/repos/docwilmot/backdrop/events","assignees_url":"https://api.github.com/repos/docwilmot/backdrop/assignees{/user}","branches_url":"https://api.github.com/repos/docwilmot/backdrop/branches{/branch}","tags_url":"https://api.github.com/repos/docwilmot/backdrop/tags","blobs_url":"https://api.github.com/repos/docwilmot/backdrop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docwilmot/backdrop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docwilmot/backdrop/git/refs{/sha}","trees_url":"https://api.github.com/repos/docwilmot/backdrop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docwilmot/backdrop/statuses/{sha}","languages_url":"https://api.github.com/repos/docwilmot/backdrop/languages","stargazers_url":"https://api.github.com/repos/docwilmot/backdrop/stargazers","contributors_url":"https://api.github.com/repos/docwilmot/backdrop/contributors","subscribers_url":"https://api.github.com/repos/docwilmot/backdrop/subscribers","subscription_url":"https://api.github.com/repos/docwilmot/backdrop/subscription","commits_url":"https://api.github.com/repos/docwilmot/backdrop/commits{/sha}","git_commits_url":"https://api.github.com/repos/docwilmot/backdrop/git/commits{/sha}","comments_url":"https://api.github.com/repos/docwilmot/backdrop/comments{/number}","issue_comment_url":"https://api.github.com/repos/docwilmot/backdrop/issues/comments{/number}","contents_url":"https://api.github.com/repos/docwilmot/backdrop/contents/{+path}","compare_url":"https://api.github.com/repos/docwilmot/backdrop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docwilmot/backdrop/merges","archive_url":"https://api.github.com/repos/docwilmot/backdrop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docwilmot/backdrop/downloads","issues_url":"https://api.github.com/repos/docwilmot/backdrop/issues{/number}","pulls_url":"https://api.github.com/repos/docwilmot/backdrop/pulls{/number}","milestones_url":"https://api.github.com/repos/docwilmot/backdrop/milestones{/number}","notifications_url":"https://api.github.com/repos/docwilmot/backdrop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docwilmot/backdrop/labels{/name}","releases_url":"https://api.github.com/repos/docwilmot/backdrop/releases{/id}","created_at":"2014-12-25T01:15:09Z","updated_at":"2015-04-03T15:20:10Z","pushed_at":"2015-12-31T20:06:27Z","git_url":"git://github.com/docwilmot/backdrop.git","ssh_url":"git@github.com:docwilmot/backdrop.git","clone_url":"https://github.com/docwilmot/backdrop.git","svn_url":"https://github.com/docwilmot/backdrop","homepage":"","size":48220,"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":"1.x"}},"base":{"label":"backdrop:1.x","ref":"1.x","sha":"a5070a3ac1d5efb99bcae631b2b0b7484320f33e","user":{"login":"backdrop","id":5283039,"avatar_url":"https://avatars.githubusercontent.com/u/5283039?v=3","gravatar_id":"","url":"https://api.github.com/users/backdrop","html_url":"https://github.com/backdrop","followers_url":"https://api.github.com/users/backdrop/followers","following_url":"https://api.github.com/users/backdrop/following{/other_user}","gists_url":"https://api.github.com/users/backdrop/gists{/gist_id}","starred_url":"https://api.github.com/users/backdrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backdrop/subscriptions","organizations_url":"https://api.github.com/users/backdrop/orgs","repos_url":"https://api.github.com/users/backdrop/repos","events_url":"https://api.github.com/users/backdrop/events{/privacy}","received_events_url":"https://api.github.com/users/backdrop/received_events","type":"Organization","site_admin":false},"repo":{"id":12285928,"name":"backdrop","full_name":"backdrop/backdrop","owner":{"login":"backdrop","id":5283039,"avatar_url":"https://avatars.githubusercontent.com/u/5283039?v=3","gravatar_id":"","url":"https://api.github.com/users/backdrop","html_url":"https://github.com/backdrop","followers_url":"https://api.github.com/users/backdrop/followers","following_url":"https://api.github.com/users/backdrop/following{/other_user}","gists_url":"https://api.github.com/users/backdrop/gists{/gist_id}","starred_url":"https://api.github.com/users/backdrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backdrop/subscriptions","organizations_url":"https://api.github.com/users/backdrop/orgs","repos_url":"https://api.github.com/users/backdrop/repos","events_url":"https://api.github.com/users/backdrop/events{/privacy}","received_events_url":"https://api.github.com/users/backdrop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/backdrop/backdrop","description":"Backdrop core code repository.","fork":false,"url":"https://api.github.com/repos/backdrop/backdrop","forks_url":"https://api.github.com/repos/backdrop/backdrop/forks","keys_url":"https://api.github.com/repos/backdrop/backdrop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/backdrop/backdrop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/backdrop/backdrop/teams","hooks_url":"https://api.github.com/repos/backdrop/backdrop/hooks","issue_events_url":"https://api.github.com/repos/backdrop/backdrop/issues/events{/number}","events_url":"https://api.github.com/repos/backdrop/backdrop/events","assignees_url":"https://api.github.com/repos/backdrop/backdrop/assignees{/user}","branches_url":"https://api.github.com/repos/backdrop/backdrop/branches{/branch}","tags_url":"https://api.github.com/repos/backdrop/backdrop/tags","blobs_url":"https://api.github.com/repos/backdrop/backdrop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/backdrop/backdrop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/backdrop/backdrop/git/refs{/sha}","trees_url":"https://api.github.com/repos/backdrop/backdrop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/backdrop/backdrop/statuses/{sha}","languages_url":"https://api.github.com/repos/backdrop/backdrop/languages","stargazers_url":"https://api.github.com/repos/backdrop/backdrop/stargazers","contributors_url":"https://api.github.com/repos/backdrop/backdrop/contributors","subscribers_url":"https://api.github.com/repos/backdrop/backdrop/subscribers","subscription_url":"https://api.github.com/repos/backdrop/backdrop/subscription","commits_url":"https://api.github.com/repos/backdrop/backdrop/commits{/sha}","git_commits_url":"https://api.github.com/repos/backdrop/backdrop/git/commits{/sha}","comments_url":"https://api.github.com/repos/backdrop/backdrop/comments{/number}","issue_comment_url":"https://api.github.com/repos/backdrop/backdrop/issues/comments{/number}","contents_url":"https://api.github.com/repos/backdrop/backdrop/contents/{+path}","compare_url":"https://api.github.com/repos/backdrop/backdrop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/backdrop/backdrop/merges","archive_url":"https://api.github.com/repos/backdrop/backdrop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/backdrop/backdrop/downloads","issues_url":"https://api.github.com/repos/backdrop/backdrop/issues{/number}","pulls_url":"https://api.github.com/repos/backdrop/backdrop/pulls{/number}","milestones_url":"https://api.github.com/repos/backdrop/backdrop/milestones{/number}","notifications_url":"https://api.github.com/repos/backdrop/backdrop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/backdrop/backdrop/labels{/name}","releases_url":"https://api.github.com/repos/backdrop/backdrop/releases{/id}","created_at":"2013-08-22T01:50:58Z","updated_at":"2015-12-28T13:17:55Z","pushed_at":"2016-01-04T03:05:02Z","git_url":"git://github.com/backdrop/backdrop.git","ssh_url":"git@github.com:backdrop/backdrop.git","clone_url":"https://github.com/backdrop/backdrop.git","svn_url":"https://github.com/backdrop/backdrop","homepage":"","size":52258,"stargazers_count":537,"watchers_count":537,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":188,"mirror_url":null,"open_issues_count":92,"forks":188,"open_issues":92,"watchers":537,"default_branch":"1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/backdrop/backdrop/pulls/1096"},"html":{"href":"https://github.com/backdrop/backdrop/pull/1096"},"issue":{"href":"https://api.github.com/repos/backdrop/backdrop/issues/1096"},"comments":{"href":"https://api.github.com/repos/backdrop/backdrop/issues/1096/comments"},"review_comments":{"href":"https://api.github.com/repos/backdrop/backdrop/pulls/1096/comments"},"review_comment":{"href":"https://api.github.com/repos/backdrop/backdrop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/backdrop/backdrop/pulls/1096/commits"},"statuses":{"href":"https://api.github.com/repos/backdrop/backdrop/statuses/6e3432d7c487d0f606f5f0d83db651ec0115aa58"}}}}