2 posts found under,


The introduction of the EventDispatcher Component has brought an interesting approach to how components of an application talk to each other in a clean and organized manner. Interestingly, this is what the hook system, which is as old as the Drupal project, was designed to do. From the documentation of Drupal 1.0: The idea is to be able to run random code at given places in the engine. This random code should then be able to do whatever needed [...]

Earlier Drupal versions have a hook system, a way of letting other developers write code that interacts with core code in a clean and organized manner. System events are defined, and when they occur, the entire application is notified, and all the code associated with the event is run. The hook system is based on the naming and definition of functions. When certain events occur, e.g. a form has been built, a node is being inserted into the datab [...]

Scale your
Development team

We help you execute projects by providing trusted developers who can join your team and immediately start delivering high-quality code.

Hire Developers