title: what's differences between when defining a hook in .theme vs .module in drupal 8
body: <p>I am new in Drupal 8. And I have a confusion is : "what's differences between when defining a hook in .theme vs .module in drupal 8" ? I tried to define a hook in both of .theme and .module and result is the same.</p>