{"action":"created","comment":{"url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/comments/148204030","pull_request_review_id":73409501,"id":148204030,"diff_hunk":"@@ -0,0 +1,154 @@\n+<?php\n+\n+namespace Drupal\\menu_item_extras\\Plugin\\views\\argument_default;\n+\n+use Drupal\\Core\\Cache\\Cache;\n+use Drupal\\Core\\Cache\\CacheableDependencyInterface;\n+use Drupal\\Core\\Entity\\EntityTypeManagerInterface;\n+use Drupal\\Core\\Form\\FormStateInterface;\n+use Drupal\\Core\\Menu\\MenuLinkTreeInterface;\n+use Drupal\\Core\\Routing\\RouteMatchInterface;\n+use Drupal\\views\\ViewExecutable;\n+use Drupal\\views\\Plugin\\views\\display\\DisplayPluginBase;\n+use Drupal\\views\\Plugin\\views\\argument_default\\ArgumentDefaultPluginBase;\n+use Symfony\\Component\\DependencyInjection\\ContainerInterface;\n+\n+/**\n+ * Active menu item id default argument.\n+ *\n+ * @ViewsArgumentDefault(\n+ *   id = \"mlc_id\",\n+ *   title = @Translation(\"Active menu item ID\")\n+ * )\n+ */\n+class MenuLinkContentId extends ArgumentDefaultPluginBase implements CacheableDependencyInterface {\n+\n+  /**\n+   * The route match.\n+   *\n+   * @var \\Drupal\\Core\\Routing\\RouteMatchInterface\n+   */\n+  protected $routeMatch;\n+\n+  /**\n+   * Entity type manager.\n+   * @var \\Drupal\\Core\\Entity\\EntityTypeManagerInterface","path":"src/Plugin/views/argument_default/MenuLinkContentId.php","position":35,"original_position":35,"commit_id":"5c157beba4da229ec6532c99b42d82926ef3c2ea","original_commit_id":"5c157beba4da229ec6532c99b42d82926ef3c2ea","user":{"login":"iVegas","id":11544787,"avatar_url":"https://avatars2.githubusercontent.com/u/11544787?v=4","gravatar_id":"","url":"https://api.github.com/users/iVegas","html_url":"https://github.com/iVegas","followers_url":"https://api.github.com/users/iVegas/followers","following_url":"https://api.github.com/users/iVegas/following{/other_user}","gists_url":"https://api.github.com/users/iVegas/gists{/gist_id}","starred_url":"https://api.github.com/users/iVegas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iVegas/subscriptions","organizations_url":"https://api.github.com/users/iVegas/orgs","repos_url":"https://api.github.com/users/iVegas/repos","events_url":"https://api.github.com/users/iVegas/events{/privacy}","received_events_url":"https://api.github.com/users/iVegas/received_events","type":"User","site_admin":false},"body":"New line before `@var`","created_at":"2017-11-01T08:30:30Z","updated_at":"2017-11-01T08:30:30Z","html_url":"https://github.com/bogdan-hepting/menu_item_extras/pull/104#discussion_r148204030","pull_request_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/104","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/comments/148204030"},"html":{"href":"https://github.com/bogdan-hepting/menu_item_extras/pull/104#discussion_r148204030"},"pull_request":{"href":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/104"}}},"pull_request":{"url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/104","id":149216320,"html_url":"https://github.com/bogdan-hepting/menu_item_extras/pull/104","diff_url":"https://github.com/bogdan-hepting/menu_item_extras/pull/104.diff","patch_url":"https://github.com/bogdan-hepting/menu_item_extras/pull/104.patch","issue_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/issues/104","number":104,"state":"open","locked":false,"title":"Set handler for views & fixed names.","user":{"login":"ozin7","id":7485040,"avatar_url":"https://avatars0.githubusercontent.com/u/7485040?v=4","gravatar_id":"","url":"https://api.github.com/users/ozin7","html_url":"https://github.com/ozin7","followers_url":"https://api.github.com/users/ozin7/followers","following_url":"https://api.github.com/users/ozin7/following{/other_user}","gists_url":"https://api.github.com/users/ozin7/gists{/gist_id}","starred_url":"https://api.github.com/users/ozin7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozin7/subscriptions","organizations_url":"https://api.github.com/users/ozin7/orgs","repos_url":"https://api.github.com/users/ozin7/repos","events_url":"https://api.github.com/users/ozin7/events{/privacy}","received_events_url":"https://api.github.com/users/ozin7/received_events","type":"User","site_admin":false},"body":"Still need to add plugin for context","created_at":"2017-10-27T15:18:06Z","updated_at":"2017-11-01T08:30:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"057c165288441c624bd478f7f40e442bfd50cd9b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"a-kom","id":5923547,"avatar_url":"https://avatars3.githubusercontent.com/u/5923547?v=4","gravatar_id":"","url":"https://api.github.com/users/a-kom","html_url":"https://github.com/a-kom","followers_url":"https://api.github.com/users/a-kom/followers","following_url":"https://api.github.com/users/a-kom/following{/other_user}","gists_url":"https://api.github.com/users/a-kom/gists{/gist_id}","starred_url":"https://api.github.com/users/a-kom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-kom/subscriptions","organizations_url":"https://api.github.com/users/a-kom/orgs","repos_url":"https://api.github.com/users/a-kom/repos","events_url":"https://api.github.com/users/a-kom/events{/privacy}","received_events_url":"https://api.github.com/users/a-kom/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/104/commits","review_comments_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/104/comments","review_comment_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/issues/104/comments","statuses_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/statuses/5c157beba4da229ec6532c99b42d82926ef3c2ea","head":{"label":"bogdan-hepting:feature/views","ref":"feature/views","sha":"5c157beba4da229ec6532c99b42d82926ef3c2ea","user":{"login":"bogdan-hepting","id":16425838,"avatar_url":"https://avatars0.githubusercontent.com/u/16425838?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdan-hepting","html_url":"https://github.com/bogdan-hepting","followers_url":"https://api.github.com/users/bogdan-hepting/followers","following_url":"https://api.github.com/users/bogdan-hepting/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-hepting/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-hepting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-hepting/subscriptions","organizations_url":"https://api.github.com/users/bogdan-hepting/orgs","repos_url":"https://api.github.com/users/bogdan-hepting/repos","events_url":"https://api.github.com/users/bogdan-hepting/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-hepting/received_events","type":"User","site_admin":false},"repo":{"id":96290830,"name":"menu_item_extras","full_name":"bogdan-hepting/menu_item_extras","owner":{"login":"bogdan-hepting","id":16425838,"avatar_url":"https://avatars0.githubusercontent.com/u/16425838?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdan-hepting","html_url":"https://github.com/bogdan-hepting","followers_url":"https://api.github.com/users/bogdan-hepting/followers","following_url":"https://api.github.com/users/bogdan-hepting/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-hepting/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-hepting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-hepting/subscriptions","organizations_url":"https://api.github.com/users/bogdan-hepting/orgs","repos_url":"https://api.github.com/users/bogdan-hepting/repos","events_url":"https://api.github.com/users/bogdan-hepting/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-hepting/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bogdan-hepting/menu_item_extras","description":"Drupal 8 module which provide an additional custom fields which can be used on Menu link","fork":false,"url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras","forks_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/forks","keys_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/teams","hooks_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/hooks","issue_events_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/issues/events{/number}","events_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/events","assignees_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/assignees{/user}","branches_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/branches{/branch}","tags_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/tags","blobs_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/statuses/{sha}","languages_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/languages","stargazers_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/stargazers","contributors_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/contributors","subscribers_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/subscribers","subscription_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/subscription","commits_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/contents/{+path}","compare_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/merges","archive_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/downloads","issues_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/issues{/number}","pulls_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls{/number}","milestones_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/milestones{/number}","notifications_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/labels{/name}","releases_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/releases{/id}","deployments_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/deployments","created_at":"2017-07-05T07:37:02Z","updated_at":"2017-10-22T14:24:57Z","pushed_at":"2017-10-30T15:48:23Z","git_url":"git://github.com/bogdan-hepting/menu_item_extras.git","ssh_url":"git@github.com:bogdan-hepting/menu_item_extras.git","clone_url":"https://github.com/bogdan-hepting/menu_item_extras.git","svn_url":"https://github.com/bogdan-hepting/menu_item_extras","homepage":"https://www.drupal.org/project/menu_item_extras","size":3329,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":10,"forks":2,"open_issues":10,"watchers":5,"default_branch":"8.x-2.x"}},"base":{"label":"bogdan-hepting:8.x-2.x","ref":"8.x-2.x","sha":"f6aa7562afc5f3168e894e3c04397993320a2475","user":{"login":"bogdan-hepting","id":16425838,"avatar_url":"https://avatars0.githubusercontent.com/u/16425838?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdan-hepting","html_url":"https://github.com/bogdan-hepting","followers_url":"https://api.github.com/users/bogdan-hepting/followers","following_url":"https://api.github.com/users/bogdan-hepting/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-hepting/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-hepting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-hepting/subscriptions","organizations_url":"https://api.github.com/users/bogdan-hepting/orgs","repos_url":"https://api.github.com/users/bogdan-hepting/repos","events_url":"https://api.github.com/users/bogdan-hepting/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-hepting/received_events","type":"User","site_admin":false},"repo":{"id":96290830,"name":"menu_item_extras","full_name":"bogdan-hepting/menu_item_extras","owner":{"login":"bogdan-hepting","id":16425838,"avatar_url":"https://avatars0.githubusercontent.com/u/16425838?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdan-hepting","html_url":"https://github.com/bogdan-hepting","followers_url":"https://api.github.com/users/bogdan-hepting/followers","following_url":"https://api.github.com/users/bogdan-hepting/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-hepting/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-hepting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-hepting/subscriptions","organizations_url":"https://api.github.com/users/bogdan-hepting/orgs","repos_url":"https://api.github.com/users/bogdan-hepting/repos","events_url":"https://api.github.com/users/bogdan-hepting/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-hepting/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bogdan-hepting/menu_item_extras","description":"Drupal 8 module which provide an additional custom fields which can be used on Menu link","fork":false,"url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras","forks_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/forks","keys_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/teams","hooks_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/hooks","issue_events_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/issues/events{/number}","events_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/events","assignees_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/assignees{/user}","branches_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/branches{/branch}","tags_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/tags","blobs_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/statuses/{sha}","languages_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/languages","stargazers_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/stargazers","contributors_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/contributors","subscribers_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/subscribers","subscription_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/subscription","commits_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/contents/{+path}","compare_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/merges","archive_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/downloads","issues_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/issues{/number}","pulls_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls{/number}","milestones_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/milestones{/number}","notifications_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/labels{/name}","releases_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/releases{/id}","deployments_url":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/deployments","created_at":"2017-07-05T07:37:02Z","updated_at":"2017-10-22T14:24:57Z","pushed_at":"2017-10-30T15:48:23Z","git_url":"git://github.com/bogdan-hepting/menu_item_extras.git","ssh_url":"git@github.com:bogdan-hepting/menu_item_extras.git","clone_url":"https://github.com/bogdan-hepting/menu_item_extras.git","svn_url":"https://github.com/bogdan-hepting/menu_item_extras","homepage":"https://www.drupal.org/project/menu_item_extras","size":3329,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":10,"forks":2,"open_issues":10,"watchers":5,"default_branch":"8.x-2.x"}},"_links":{"self":{"href":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/104"},"html":{"href":"https://github.com/bogdan-hepting/menu_item_extras/pull/104"},"issue":{"href":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/issues/104"},"comments":{"href":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/bogdan-hepting/menu_item_extras/statuses/5c157beba4da229ec6532c99b42d82926ef3c2ea"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"iVegas"}}