Drupal 8 - Make sure to use if statements in hooks
When using a hook in drupal, be sure to use an if statement to assure that what you want to work with is present. The hook applies to everything on the site, and may cause issues if you are not thinking about that.
No comments:
Post a Comment