This question already has an answer here:
- What is the basic concept behind hooks? 14 answers
I'm learning to create custom modules in Drupal 8, and in this context I bought a book. Somewhere in the book they told me to do something using hooks, but I have never used hooks before, and I even don't know what they are. So I looked it up on Google and find out that they are being used to extend and modify Drupal's functionality, but I still have a question: How do they function and how do I use them?
I say thanks to all answers :)