Create a new Module and Edit your view Hello, To use this hook (like any other), you must create a custom module. Follow this tutorial to know how to create a module. Create a simple module to use Drupal 8 Hook System Reply