{"action":"created","comment":{"url":"https://api.github.com/repos/agentrickard/workbench_access/pulls/comments/107667166","pull_request_review_id":28652156,"id":107667166,"diff_hunk":"@@ -168,6 +168,35 @@ function workbench_access_node_access(NodeInterface $node, $op, AccountInterface\n }\n \n /**\n+ * Implements hook_node_create_access().\n+ *\n+ * @link https://www.drupal.org/node/2348203\n+ */\n+function workbench_access_node_create_access(AccountInterface $account, $context, $entity_bundle) {\n+  $return = AccessResult::neutral();\n+  // Check that our access control is configured.\n+  $manager = \\Drupal::service('plugin.manager.workbench_access.scheme');\n+  $scheme = $manager->getActiveScheme();\n+  if (!$scheme) {","path":"workbench_access.module","position":13,"original_position":13,"commit_id":"30a29566556add3534d938494aae634b23d879eb","original_commit_id":"30a29566556add3534d938494aae634b23d879eb","user":{"login":"agentrickard","id":360988,"avatar_url":"https://avatars2.githubusercontent.com/u/360988?v=3","gravatar_id":"","url":"https://api.github.com/users/agentrickard","html_url":"https://github.com/agentrickard","followers_url":"https://api.github.com/users/agentrickard/followers","following_url":"https://api.github.com/users/agentrickard/following{/other_user}","gists_url":"https://api.github.com/users/agentrickard/gists{/gist_id}","starred_url":"https://api.github.com/users/agentrickard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentrickard/subscriptions","organizations_url":"https://api.github.com/users/agentrickard/orgs","repos_url":"https://api.github.com/users/agentrickard/repos","events_url":"https://api.github.com/users/agentrickard/events{/privacy}","received_events_url":"https://api.github.com/users/agentrickard/received_events","type":"User","site_admin":false},"body":"Actually, I'm always uncertain on the negation syntax in that IF case.\r\n\r\nIt's not `if ($scheme 1= $manager->getActiveScheme())` and I don't trust `if (!$scheme = $manager->getActiveScheme())` to read clearly.","created_at":"2017-03-23T13:30:14Z","updated_at":"2017-03-23T13:30:14Z","html_url":"https://github.com/agentrickard/workbench_access/pull/62#discussion_r107667166","pull_request_url":"https://api.github.com/repos/agentrickard/workbench_access/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/agentrickard/workbench_access/pulls/comments/107667166"},"html":{"href":"https://github.com/agentrickard/workbench_access/pull/62#discussion_r107667166"},"pull_request":{"href":"https://api.github.com/repos/agentrickard/workbench_access/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/agentrickard/workbench_access/pulls/62","id":112035540,"html_url":"https://github.com/agentrickard/workbench_access/pull/62","diff_url":"https://github.com/agentrickard/workbench_access/pull/62.diff","patch_url":"https://github.com/agentrickard/workbench_access/pull/62.patch","issue_url":"https://api.github.com/repos/agentrickard/workbench_access/issues/62","number":62,"state":"open","locked":false,"title":"Adds hook_mode_create_access.","user":{"login":"agentrickard","id":360988,"avatar_url":"https://avatars2.githubusercontent.com/u/360988?v=3","gravatar_id":"","url":"https://api.github.com/users/agentrickard","html_url":"https://github.com/agentrickard","followers_url":"https://api.github.com/users/agentrickard/followers","following_url":"https://api.github.com/users/agentrickard/following{/other_user}","gists_url":"https://api.github.com/users/agentrickard/gists{/gist_id}","starred_url":"https://api.github.com/users/agentrickard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentrickard/subscriptions","organizations_url":"https://api.github.com/users/agentrickard/orgs","repos_url":"https://api.github.com/users/agentrickard/repos","events_url":"https://api.github.com/users/agentrickard/events{/privacy}","received_events_url":"https://api.github.com/users/agentrickard/received_events","type":"User","site_admin":false},"body":"See #58 ","created_at":"2017-03-22T15:19:29Z","updated_at":"2017-03-23T13:30:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"519ba1fe723a24e4451348e145cc3f82fd16e157","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/agentrickard/workbench_access/pulls/62/commits","review_comments_url":"https://api.github.com/repos/agentrickard/workbench_access/pulls/62/comments","review_comment_url":"https://api.github.com/repos/agentrickard/workbench_access/pulls/comments{/number}","comments_url":"https://api.github.com/repos/agentrickard/workbench_access/issues/62/comments","statuses_url":"https://api.github.com/repos/agentrickard/workbench_access/statuses/30a29566556add3534d938494aae634b23d879eb","head":{"label":"agentrickard:create-access","ref":"create-access","sha":"30a29566556add3534d938494aae634b23d879eb","user":{"login":"agentrickard","id":360988,"avatar_url":"https://avatars2.githubusercontent.com/u/360988?v=3","gravatar_id":"","url":"https://api.github.com/users/agentrickard","html_url":"https://github.com/agentrickard","followers_url":"https://api.github.com/users/agentrickard/followers","following_url":"https://api.github.com/users/agentrickard/following{/other_user}","gists_url":"https://api.github.com/users/agentrickard/gists{/gist_id}","starred_url":"https://api.github.com/users/agentrickard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentrickard/subscriptions","organizations_url":"https://api.github.com/users/agentrickard/orgs","repos_url":"https://api.github.com/users/agentrickard/repos","events_url":"https://api.github.com/users/agentrickard/events{/privacy}","received_events_url":"https://api.github.com/users/agentrickard/received_events","type":"User","site_admin":false},"repo":{"id":36757935,"name":"workbench_access","full_name":"agentrickard/workbench_access","owner":{"login":"agentrickard","id":360988,"avatar_url":"https://avatars2.githubusercontent.com/u/360988?v=3","gravatar_id":"","url":"https://api.github.com/users/agentrickard","html_url":"https://github.com/agentrickard","followers_url":"https://api.github.com/users/agentrickard/followers","following_url":"https://api.github.com/users/agentrickard/following{/other_user}","gists_url":"https://api.github.com/users/agentrickard/gists{/gist_id}","starred_url":"https://api.github.com/users/agentrickard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentrickard/subscriptions","organizations_url":"https://api.github.com/users/agentrickard/orgs","repos_url":"https://api.github.com/users/agentrickard/repos","events_url":"https://api.github.com/users/agentrickard/events{/privacy}","received_events_url":"https://api.github.com/users/agentrickard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agentrickard/workbench_access","description":"Repository for Drupal 8 Workbench Access Module","fork":false,"url":"https://api.github.com/repos/agentrickard/workbench_access","forks_url":"https://api.github.com/repos/agentrickard/workbench_access/forks","keys_url":"https://api.github.com/repos/agentrickard/workbench_access/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agentrickard/workbench_access/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agentrickard/workbench_access/teams","hooks_url":"https://api.github.com/repos/agentrickard/workbench_access/hooks","issue_events_url":"https://api.github.com/repos/agentrickard/workbench_access/issues/events{/number}","events_url":"https://api.github.com/repos/agentrickard/workbench_access/events","assignees_url":"https://api.github.com/repos/agentrickard/workbench_access/assignees{/user}","branches_url":"https://api.github.com/repos/agentrickard/workbench_access/branches{/branch}","tags_url":"https://api.github.com/repos/agentrickard/workbench_access/tags","blobs_url":"https://api.github.com/repos/agentrickard/workbench_access/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agentrickard/workbench_access/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agentrickard/workbench_access/git/refs{/sha}","trees_url":"https://api.github.com/repos/agentrickard/workbench_access/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agentrickard/workbench_access/statuses/{sha}","languages_url":"https://api.github.com/repos/agentrickard/workbench_access/languages","stargazers_url":"https://api.github.com/repos/agentrickard/workbench_access/stargazers","contributors_url":"https://api.github.com/repos/agentrickard/workbench_access/contributors","subscribers_url":"https://api.github.com/repos/agentrickard/workbench_access/subscribers","subscription_url":"https://api.github.com/repos/agentrickard/workbench_access/subscription","commits_url":"https://api.github.com/repos/agentrickard/workbench_access/commits{/sha}","git_commits_url":"https://api.github.com/repos/agentrickard/workbench_access/git/commits{/sha}","comments_url":"https://api.github.com/repos/agentrickard/workbench_access/comments{/number}","issue_comment_url":"https://api.github.com/repos/agentrickard/workbench_access/issues/comments{/number}","contents_url":"https://api.github.com/repos/agentrickard/workbench_access/contents/{+path}","compare_url":"https://api.github.com/repos/agentrickard/workbench_access/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agentrickard/workbench_access/merges","archive_url":"https://api.github.com/repos/agentrickard/workbench_access/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agentrickard/workbench_access/downloads","issues_url":"https://api.github.com/repos/agentrickard/workbench_access/issues{/number}","pulls_url":"https://api.github.com/repos/agentrickard/workbench_access/pulls{/number}","milestones_url":"https://api.github.com/repos/agentrickard/workbench_access/milestones{/number}","notifications_url":"https://api.github.com/repos/agentrickard/workbench_access/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agentrickard/workbench_access/labels{/name}","releases_url":"https://api.github.com/repos/agentrickard/workbench_access/releases{/id}","deployments_url":"https://api.github.com/repos/agentrickard/workbench_access/deployments","created_at":"2015-06-02T19:52:03Z","updated_at":"2017-01-31T17:42:16Z","pushed_at":"2017-03-23T01:45:01Z","git_url":"git://github.com/agentrickard/workbench_access.git","ssh_url":"git@github.com:agentrickard/workbench_access.git","clone_url":"https://github.com/agentrickard/workbench_access.git","svn_url":"https://github.com/agentrickard/workbench_access","homepage":"","size":431,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":16,"forks":5,"open_issues":16,"watchers":4,"default_branch":"8.x-1.x"}},"base":{"label":"agentrickard:8.x-1.x","ref":"8.x-1.x","sha":"27fbfa6f57ddce63dcc3eb1908ec17b33df44a19","user":{"login":"agentrickard","id":360988,"avatar_url":"https://avatars2.githubusercontent.com/u/360988?v=3","gravatar_id":"","url":"https://api.github.com/users/agentrickard","html_url":"https://github.com/agentrickard","followers_url":"https://api.github.com/users/agentrickard/followers","following_url":"https://api.github.com/users/agentrickard/following{/other_user}","gists_url":"https://api.github.com/users/agentrickard/gists{/gist_id}","starred_url":"https://api.github.com/users/agentrickard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentrickard/subscriptions","organizations_url":"https://api.github.com/users/agentrickard/orgs","repos_url":"https://api.github.com/users/agentrickard/repos","events_url":"https://api.github.com/users/agentrickard/events{/privacy}","received_events_url":"https://api.github.com/users/agentrickard/received_events","type":"User","site_admin":false},"repo":{"id":36757935,"name":"workbench_access","full_name":"agentrickard/workbench_access","owner":{"login":"agentrickard","id":360988,"avatar_url":"https://avatars2.githubusercontent.com/u/360988?v=3","gravatar_id":"","url":"https://api.github.com/users/agentrickard","html_url":"https://github.com/agentrickard","followers_url":"https://api.github.com/users/agentrickard/followers","following_url":"https://api.github.com/users/agentrickard/following{/other_user}","gists_url":"https://api.github.com/users/agentrickard/gists{/gist_id}","starred_url":"https://api.github.com/users/agentrickard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentrickard/subscriptions","organizations_url":"https://api.github.com/users/agentrickard/orgs","repos_url":"https://api.github.com/users/agentrickard/repos","events_url":"https://api.github.com/users/agentrickard/events{/privacy}","received_events_url":"https://api.github.com/users/agentrickard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agentrickard/workbench_access","description":"Repository for Drupal 8 Workbench Access Module","fork":false,"url":"https://api.github.com/repos/agentrickard/workbench_access","forks_url":"https://api.github.com/repos/agentrickard/workbench_access/forks","keys_url":"https://api.github.com/repos/agentrickard/workbench_access/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agentrickard/workbench_access/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agentrickard/workbench_access/teams","hooks_url":"https://api.github.com/repos/agentrickard/workbench_access/hooks","issue_events_url":"https://api.github.com/repos/agentrickard/workbench_access/issues/events{/number}","events_url":"https://api.github.com/repos/agentrickard/workbench_access/events","assignees_url":"https://api.github.com/repos/agentrickard/workbench_access/assignees{/user}","branches_url":"https://api.github.com/repos/agentrickard/workbench_access/branches{/branch}","tags_url":"https://api.github.com/repos/agentrickard/workbench_access/tags","blobs_url":"https://api.github.com/repos/agentrickard/workbench_access/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agentrickard/workbench_access/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agentrickard/workbench_access/git/refs{/sha}","trees_url":"https://api.github.com/repos/agentrickard/workbench_access/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agentrickard/workbench_access/statuses/{sha}","languages_url":"https://api.github.com/repos/agentrickard/workbench_access/languages","stargazers_url":"https://api.github.com/repos/agentrickard/workbench_access/stargazers","contributors_url":"https://api.github.com/repos/agentrickard/workbench_access/contributors","subscribers_url":"https://api.github.com/repos/agentrickard/workbench_access/subscribers","subscription_url":"https://api.github.com/repos/agentrickard/workbench_access/subscription","commits_url":"https://api.github.com/repos/agentrickard/workbench_access/commits{/sha}","git_commits_url":"https://api.github.com/repos/agentrickard/workbench_access/git/commits{/sha}","comments_url":"https://api.github.com/repos/agentrickard/workbench_access/comments{/number}","issue_comment_url":"https://api.github.com/repos/agentrickard/workbench_access/issues/comments{/number}","contents_url":"https://api.github.com/repos/agentrickard/workbench_access/contents/{+path}","compare_url":"https://api.github.com/repos/agentrickard/workbench_access/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agentrickard/workbench_access/merges","archive_url":"https://api.github.com/repos/agentrickard/workbench_access/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agentrickard/workbench_access/downloads","issues_url":"https://api.github.com/repos/agentrickard/workbench_access/issues{/number}","pulls_url":"https://api.github.com/repos/agentrickard/workbench_access/pulls{/number}","milestones_url":"https://api.github.com/repos/agentrickard/workbench_access/milestones{/number}","notifications_url":"https://api.github.com/repos/agentrickard/workbench_access/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agentrickard/workbench_access/labels{/name}","releases_url":"https://api.github.com/repos/agentrickard/workbench_access/releases{/id}","deployments_url":"https://api.github.com/repos/agentrickard/workbench_access/deployments","created_at":"2015-06-02T19:52:03Z","updated_at":"2017-01-31T17:42:16Z","pushed_at":"2017-03-23T01:45:01Z","git_url":"git://github.com/agentrickard/workbench_access.git","ssh_url":"git@github.com:agentrickard/workbench_access.git","clone_url":"https://github.com/agentrickard/workbench_access.git","svn_url":"https://github.com/agentrickard/workbench_access","homepage":"","size":431,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":16,"forks":5,"open_issues":16,"watchers":4,"default_branch":"8.x-1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/agentrickard/workbench_access/pulls/62"},"html":{"href":"https://github.com/agentrickard/workbench_access/pull/62"},"issue":{"href":"https://api.github.com/repos/agentrickard/workbench_access/issues/62"},"comments":{"href":"https://api.github.com/repos/agentrickard/workbench_access/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/agentrickard/workbench_access/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/agentrickard/workbench_access/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/agentrickard/workbench_access/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/agentrickard/workbench_access/statuses/30a29566556add3534d938494aae634b23d879eb"}}}}
{"actor":{"display_login":"agentrickard"}}