{"action":"created","issue":{"url":"https://api.github.com/repos/Haehnchen/idea-php-drupal-symfony2-bridge/issues/5","labels_url":"https://api.github.com/repos/Haehnchen/idea-php-drupal-symfony2-bridge/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Haehnchen/idea-php-drupal-symfony2-bridge/issues/5/comments","events_url":"https://api.github.com/repos/Haehnchen/idea-php-drupal-symfony2-bridge/issues/5/events","html_url":"https://github.com/Haehnchen/idea-php-drupal-symfony2-bridge/issues/5","id":90287506,"number":5,"title":"Can we add parsing for hook_theme","user":{"login":"jibran","id":2111106,"avatar_url":"https://avatars.githubusercontent.com/u/2111106?v=3","gravatar_id":"","url":"https://api.github.com/users/jibran","html_url":"https://github.com/jibran","followers_url":"https://api.github.com/users/jibran/followers","following_url":"https://api.github.com/users/jibran/following{/other_user}","gists_url":"https://api.github.com/users/jibran/gists{/gist_id}","starred_url":"https://api.github.com/users/jibran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jibran/subscriptions","organizations_url":"https://api.github.com/users/jibran/orgs","repos_url":"https://api.github.com/users/jibran/repos","events_url":"https://api.github.com/users/jibran/events{/privacy}","received_events_url":"https://api.github.com/users/jibran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-23T04:51:29Z","updated_at":"2015-06-23T04:57:47Z","closed_at":null,"body":"First of all thank you for making this plugin. In drupal 8 `hook_theme` are defined like this.\r\n```php\r\n/**\r\n * Implements hook_theme().\r\n */\r\nfunction user_theme() {\r\n  return array(\r\n    'user' => array(\r\n      'render element' => 'elements',\r\n    ),\r\n    'username' => array(\r\n      'variables' => array('account' => NULL, 'attributes' => array(), 'link_options' => array()),\r\n    ),\r\n  );\r\n}\r\n```\r\nIt means there are `user.twig.html` and `username.twig.html` in the core. Can we add the functionality to go to `user.twig.html` or `username.twig.html` form the above theme function? A small t for template sign next to the `'username'` and `'user'` string just like routes or services would take us to respective templates.\r\n\r\n<a href=\"https://github.com/drupal/drupal/blob/8.0.x/core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php#L48\">`ThemeRegistryLoader::findTemplate()`</a> is the function which coverts these strings to template file "},"comment":{"url":"https://api.github.com/repos/Haehnchen/idea-php-drupal-symfony2-bridge/issues/comments/114356191","html_url":"https://github.com/Haehnchen/idea-php-drupal-symfony2-bridge/issues/5#issuecomment-114356191","issue_url":"https://api.github.com/repos/Haehnchen/idea-php-drupal-symfony2-bridge/issues/5","id":114356191,"user":{"login":"jibran","id":2111106,"avatar_url":"https://avatars.githubusercontent.com/u/2111106?v=3","gravatar_id":"","url":"https://api.github.com/users/jibran","html_url":"https://github.com/jibran","followers_url":"https://api.github.com/users/jibran/followers","following_url":"https://api.github.com/users/jibran/following{/other_user}","gists_url":"https://api.github.com/users/jibran/gists{/gist_id}","starred_url":"https://api.github.com/users/jibran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jibran/subscriptions","organizations_url":"https://api.github.com/users/jibran/orgs","repos_url":"https://api.github.com/users/jibran/repos","events_url":"https://api.github.com/users/jibran/events{/privacy}","received_events_url":"https://api.github.com/users/jibran/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T04:57:47Z","updated_at":"2015-06-23T04:57:47Z","body":"If you want to have a look at complete processing of the hook the code is in <a href=\"https://github.com/drupal/drupal/blob/8.0.x/core/lib/Drupal/Core/Theme/Registry.php#L413\">`Registry::processExtension`</a>."}}